Slideshow:
R = (X, Y)
S = (Y, Z)
S has a non-clustering index on Y
|
while ( R ≠ EOF )
{
read next block of R in buffer b:
|
|
|
Assuming that different tuples s are stored in different blocks, we will access:
T(S)
# blocks of S accessed per tuple t ∈ R = -------- blocks
V(S,Y)
|
# disk IOs = Scan R (once
+ # tuples in R × # blocks of S read per tuple of R
|