Indexes Flashcards

(3 cards)

1
Q

What is indexing? What benefit does it provide?

A

Indexing allows you to more quickly search through a database by assigning keys (similar to a hash map). These can greatly improve search performance to avoid scanning the entire table.

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

What is a downside of indexing?

A

Indexing can speed up read performance, but it can impact write performance (as now indexing is being performed).

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

What should you consider before applying indexes to a database?

A

If you are running a very read intensive system, then indexing provides a great benefit. However, write-heavy systems may want to avoid defining too many indices as performance would degrade.

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