Lecture 4 Flashcards
What are disadvantages of static hasing?
If data file has a lot of deletions, a lot of space gets wasted. Conversely, if a file grows a lot, long overflow chains develop
In extendible hashing, what do we do with the directory once we receive a collision?
Double the size of it
In extendible hashing when do collisions occur and how do we handle them?
When data entries have the same value. We handle them through overflow pages
In extendible hashing, how many I/O’s are needed?
If directory can fit in main memory, only 1, otherwise multiple.
What is heap file bad at?
Equality Search and deletion
What is sorted file bad at?
Insert and Delete
What is unclustered hash and idnex bad at?
Scan and Range search
What is index only evaluation?
Answering a query by using ONLY the index
What is a composite key? What are the advantages and disadvantages?
In the case of indexing, when we have a search key with 2 query parameters. Allows for more index only evaluations.
However they are costly to maintain because they need more updates and take up more space
What is a bitmap index and when is it useful?
When we use bits to determine what the value of a row is.
On columns that have a few values (ex: boolean)
What is a spatial index used for?
Geospatial queries, GIS.