Question: onsider the join R { R . a = S . b } S , given the following information about R and S . The
onsider the join R Ra Sb S given the following information about R and S The cost metric is the number of page IOs and the cost of writing out the final result is ignored.
R contains tuples and has tuple per page.
S contains tuples and also has tuples per page.
Ra is the primary key for R
Each tuple of R joins with exactly tuples of S
pages available in the buffer pool.
What is the cost of the join using a pageoriented nested loop joins that is to use one page to load outer relation in each iteration
What is the cost of the join using a block nested loop joins?
What is the cost of the join using a sortmerge join?
What is the minimum number of buffer pages required for the sortmerge join? Suppose we use heap sort to increase initial run size in the sort phase.
What is the cost of the join using a hash join?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
