Set 3-3 Flashcards

(18 cards)

1
Q

The bottom level of a multi-level index is always sparse.

A

False

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

Levels above the bottom of a multi-level index are always sparse.

A

True

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

Each column value appears at most once in a multi-level index.

A

False

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

In a sparse multi-level index, each table block pointer appears exactly once.

A

True

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

Assume a table has 1,000,000 rows. Index entries are 26 bytes, and index blocks are 8 kilobytes. Use a calculator to compute logs.

What is the fan-out for a multi-level index?

A

Approximately 300

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

Assume a table has 1,000,000 rows. Index entries are 26 bytes, and index blocks are 8 kilobytes. Use a calculator to compute logs.

How many levels does a dense multi-level index have?

A

3

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

Assume a table has 1,000,000 rows. Index entries are 26 bytes, and index blocks are 8 kilobytes. Use a calculator to compute logs.

If table blocks are 2 kilobytes and rows are 100 bytes, how many levels does a sparse multi-level index have?

A

2

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

Number of rows / rows per table block

A

Table Scan

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

Number of index blocks plus referenced table blocks.

A

Single-level Index Scan

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

log base 2 (number of index blocks) plus referenced table blocks.

A

Single-level index binary search

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

log base fan-out (number of rows), rounded up, plus referenced table blocks.

A

Multi-level dense index search

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

log base fan-out (number of rows / rows per table block), rounded up, plus referenced table blocks.

A

Multi-level sparse index search

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

If the index is sparse, an insert to the table always generates a new index level.

A

False

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

If the index is dense, an insert to the table always generates a new index level.

A

True

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

If the index is dense, an update to the indexed column always generates a new index level.

A

False

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

Which type of index can have table block pointers at any level?

17
Q

In informal use, the term ‘B-tree’ commonly means:

A

Either a B-tree or a B+tree index

18
Q

Which index structure enables an index scan using the bottom level only?