CST 363 Week 5

Reading slow indexes on Use the Index Luke was really interesting. The article goes over how indexes are designed to speed up queries and how that can sometimes cause slowness. This doesn't happen because the index is bad or broken, but because of how indexes lookup works. When it comes to how an index work, it has the following 3 steps: 

1. Tree traversal and this step is fast 
2. Following the leaf node chain
3. Fetching corresponding table

Following the leaf node chain and fetching corresponding tables can be slow, especially when more than one entry match the query or when the related table row are scattered across multiple blocks. This complexity explains why simply rebuilding an index won’t solve the issue in the long run and instead cause slower performance.


Comments

Popular posts from this blog

CST 462S - Learning Journal (service learning)

CST 300 Week 7