Databases System: Week 5
If indexes are supposed to speed up performance of query, what does the author mean by a slow index?
https://use-the-index-luke.com/sql/anatomy/slow-indexes
Indexes are known for speeding up the performance of a query but it is not the case for certain situations. The author means that the slow index is being caused by a specific reason. One reason is following the leaf node chain makes an index slow because of multiple leaf nodes that are potential matches for the query. Another reason is accessing the table by index ROWID which can cause indexes to be slow due to the amount of data being read which can be large. Indexes can help the performance of a database but in some cases, they can't due to a badly constructed query.
Comments
Post a Comment