Question: Let relations r 1 ( A , B , C ) and r 2 ( C , D , E ) have the following properties:

Let relations r1(A, B, C) and r2(C, D, E) have the following properties: r1 has 20,000 tuples, r2 has 45,000 tuples, 25 tuples of r1 fit on one block, and 30 tuples of r2 fit on one block. Estimate the number of block transfers and seeks required using each of the following join strategies for r1 r2.
** Consider the following assumptions:
1. Memory size M=600 blocks.
2. For Hash join, assuming 3 blocks (bb =3) are allocated for the input buffer and each output buffer. Number of partitions nh =20.
** You may use the following expressions to estimate required block transfers and seeks for a hash join:
a. # of block transfers: 3(br + bs)+4nh
b. # of seeks: 2( br / bb + bs / bb)+2nh
a. Nested-loop join.
b. Block nested-loop join.
c. Merge join.
d. Hash join.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!