Chapter 27 Flashcards

1
Q

In which situation index slows down database performance mostly

A

When database is write-intensive

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

What are the two ways to access data

A
  • non-keyed access

- keyed access

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

Does Non-keyed access uses index

A

No

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

What are special index structures

A

Inverted index
Bitmap index
Cluster index
Join index

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

What is inverted index

A

An inverted index is an optimized structure that is built primarily for retrieval, with update being only a secondary consideration.

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

Does search engines uses inverted index

A

Yes

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

What is the worst case of inverted index

A

O(n)

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

What are Bitmap Indexes

A

Index consists of a number of bitmaps

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

What is length of the bit vector

A

The length of the bit vector is the number of records in the base table.

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

Does bitmaps are good for high-cardiniality

A

No

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

What are advantages of Bitmap Index

A

Very low storage space

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

What is faster in database retrieval, bitmap index or B-tree index

A

bitmap index

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

What is the disadvantage of bitmap Index

A

Locking of many rows

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

What is Cluster Index

A

A cluster index defines the sort order on the base table. The big advantage of a cluster index is that all the rows with the same cluster index value will be placed into adjacent locations in a small number of data blocks like a cluster.

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

When Cluster Index is best

A

O (n log n)

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