CST363 Week 5

The web site "Use the Index Luke" has a page on "slow indexes".   https://use-the-index-luke.com/sql/anatomy/slow-indexes

Links to an external site. 

If indexes are supposed to speed up performance of query,  what does the author mean by a slow index? 


In the article "Slow Indexes" from Use the Index, Luke!, the author explains that not every index lookup is automatically fast. A "slow index" happens when the database still has to do extra work after finding the right index entries. An example of this would be if there were multiple matching rows, the system has to follow the leaf node chain, and then access the table data for each match. These table blocks might be scattered, which increases input and output operations with the storage system and slow things down. In other words, the index itself is not corrupt, it just contains such a huge amount of data that it makes the query run slower than would have been expected, still accessing the index.

Comments

Popular posts from this blog

Week 4 - Goals!

Week 2 - Second week of class!

Week 4 - Interview with Industry Expert