Next: Evaluation of Buffer Management
Up: The Query Locality Set
Previous: The Query Locality Set
- Sequential References : Pages are referenced one after another.
- Straight Sequential
- Mostly the scan is done once w.o repetition.
- A single page frame is sufficient for the buffer space.
- Clustered Sequential
- A scan may back up a short distance & then start fwd again.
- Records in a cluster should be kept in the memory together.
- Looping Sequential
- A sequential reference may be repeated several times.
- Best Case : Entire file placed in memory.
- Best Algorithm : MRU replacement strategy.
- Random References
- Independent Random
- A series of independent accesses.
- Example : An index scan through a secondary index.
- Clustered Random
- Locality of reference exists.
- If possible, each page having a record in a cluster is in memory.
- Hierarchical References : Sequence of accesses that form a traversal path from the root
down to the leaves of an index.
- Straight Hierarchical
- Index traversed only once.
- One buffer page sufficient.
- Tree traversal can be followed by a sequential scan through leaves.
- Hierarchical with Straight Sequential :
If scan on the leaves is Straight Sequential
- Hierarchical with Clustered Sequential :
If scan on the leaves is Clustered Sequential
- Looping Hierarchical :
Repeated references to a heirarchical structure.
The access probability of an index page at level i, (assuming root
is at level 0) is inversely proportional to the ith power of the fan-out
factor of an index page.
Deepak Kumar Tawri
Wed Apr 21 21:25:41 IST 1999