|
|
Graphically:
|
relation R(X,Y) relation S(Y,Z)
--------------------------------------------
B(R) = 1000 blks B(S) = 500 blocks
T(R) = 10000 tuples T(S) = 5000 tuples
R is clustered S is clustered
Clustering sorted index on R
Clustering sorted index on S
V(S,Y) = 100
|
|
Use the clustering index of R and scan R once
we will use: B(R) disk I/Os (there is few skipping around
because the index is clustering)
Use the clustering index of S and scan S once
we will use: B(S) disk I/Os (there is few skipping around
because the index is clustering)
|
Note:
|