Question: Consider the join R { R . a = S . b } S , given the following information about R and S . The
Consider 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.
Sb is the primary key for S
Both relations are stored as heap files.
No index
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 cost of the join using a hash join?
What would be the lowest possible IO cost for the join using any join algorithm?
To achieve that lowest possible cost, what is the minimum numbre of buffer pages needed
If you are told that Ra is a foreign key that refers to Sb can this fact be possibly used to reduce the cost of any join algorithms among nestloop, sortmerge, and hash?
Choose one from nestedloop, sortmerge, and hash and put in the blank.
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
