Query Processing and Optimization
Query Processing and Optimization
Query Processing and Optimization
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Partitioning Phase<br />
• Partitioning phase: r divided into n h partitions. The<br />
number of buffer blocks is n B . One block used for<br />
reading r. (n h = n B -1)<br />
• Similar with relation s<br />
• I/O cost: 2 × (b r + b s )<br />
OUTPUT<br />
1<br />
Partitions<br />
Relation<br />
r or s<br />
. . .<br />
INPUT<br />
hash<br />
function<br />
h<br />
2<br />
n B<br />
-1<br />
1<br />
2<br />
n B<br />
-1<br />
Disk<br />
n B<br />
main memory buffers<br />
Disk<br />
21