Indexes are a good way to increase the performance of a query, it can avoid table scan and directly help us to reach the data we need. However there are cases when the CBO will not consider the indexes that are associated to the table. The normal scenario that I see is that the index is not getting used because of poor selectivity or cardinality. There is another factor called Clustering Factor which also determines if the index needs to be used by the query. If the Clustering Factor is almost equal to the same number of rows in the table, then the index is poor and the CBO might not use the index.
Thursday, April 9, 2009
Clustering Factor for Indexes in Oracle
Labels:
Oracle,
performance
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment