CST363: Learning Journal Week 5
Prompt:
The web site "Use the Index Luke" has a page on "slow indexes". https://use-the-index-luke.com/sql/anatomy/slow-indexesLinks to an external site.
If indexes are supposed to speed up performance of query, what does the author mean by a slow index?
Response:
When mentioning "slow indexes" the author refers to indexes reducing the speed of a database. A prime example that's used is long-range indexes. These indexes traverse a table looking for matching indexes. If there are multiple matching indexes, the traversal and retrieval is done for each matching index. This means that the table is accessed each time. In such a case, indexes become slow, thus defeating their purpose.
Comments
Post a Comment