Question: Question 7 options: Consider relations R ( a , b , c ) , S ( a , d ) , and T ( a
Question options:
Consider relations Ra b c Sa d and Ta e f to be joined on the common attribute a Assume that there are no indexes available on the tables.
There are B pages in the buffer
R spans M pages with tuples per page
S spans N pages with tuples per page
T spans O pages with tuples per page
In computing the IO cost you can assume the simplest cost model where pages are read and written one at a time. You can also assume that you will need one buffer block to hold the output block. You may ignore the cost of the writing of the final results.
What is the cost of sorting the tuples in R on attribute a
What is the cost of sorting the tuples inS on attribute a
What is the cost of the merge phase in the worstcase scenario?
What is the cost of the merge phase assuming there are no duplicates in the join attribute?
Now consider joining R S and then joining the result with T Suppose the cost of the final merge phase is and assume that there are no duplicates in the join attribute. How many pages did the join result of R and S span?
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
