Lecture 4 Flashcards

1
Q

What are disadvantages of static hasing?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

In extendible hashing, what do we do with the directory once we receive a collision?

A

Double the size of it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In extendible hashing when do collisions occur and how do we handle them?

A

When data entries have the same value. We handle them through overflow pages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In extendible hashing, how many I/O’s are needed?

A

If directory can fit in main memory, only 1, otherwise multiple.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is heap file bad at?

A

Equality Search and deletion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is sorted file bad at?

A

Insert and Delete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is unclustered hash and idnex bad at?

A

Scan and Range search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is index only evaluation?

A

Answering a query by using ONLY the index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is a composite key? What are the advantages and disadvantages?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a bitmap index and when is it useful?

A

When we use bits to determine what the value of a row is.
On columns that have a few values (ex: boolean)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a spatial index used for?

A

Geospatial queries, GIS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly