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.
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).
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.