



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















r r r r r r r r
s s s s s s
. . .
Need to fully scan S For each tuples in R
r r r
r r r
r r
s s s
s s s
Need to fully scan S For each page in R
Join 1 page of R With 1 page of S
r r r
r r r
s s s
s s s
r r r
r r r
Pages on disk
Buffer Pool
Pages on disk
Join a run of page of R With 1 page of S
Run of pages In hash table
Index I = S.getIndex() // get handler for index on S for each r ∈ R do Iterator T = I.search(r[i])
while (s[j]==r[i]) sOld = s; while (s[j]==r[i]) add t = <r,s> result s = I2.next(); s = sOld; r = I1.next();
R NPages R