Examples of Clustering
B+ tree index on E.age can be used to get qualifying tuples.
- How selective is the condition?
- Is the index clustered?
Consider the GROUP BY query.
- If many tuples have E.age > 10, using E.age index and sorting the retrieved tuples may be costly.
- Clustered E.dno index may be better!
Equality queries and duplicates
- Clustering on E.hobby helps!