Week 5 - CST 363
In this webpage "Slow Indexes, Part 1", when the author mentions a slow index, he is merely saying that the index does not provide much improvement as expected. Sometimes, an index may make queries less efficient.
If multiple rows have the same index value, then the database must read the next leaf node to see if there are more instances of the same value. Other times, looking up an index requires three steps, one of which is fetching the data. This step may require accessing many blocks, causing the index lookup to be slow.
Sometimes, a "slow index" is not caused by the index structure itself, but by how the table is accessed. This is what may be causing a less efficient data lookup process.
Comments
Post a Comment