Question: Query Optimization For the four relations in the following table, find the best join order according to the dynamic programming algorithm used in System-R. You

Query Optimization

For the four relations in the following table, find the best join order according to the dynamic programming algorithm used in System-R. You should give the dynamic programming table entries for evaluate the join orders. Assume that the cost of each join is the size of its intermediate result. Suppose that we are only interested in left-deep join trees and join trees without Cartesian products. Note that you should use the System-R optimizer formula to compute the size of each join output.

R(A,B,C)

S(B,C)

W(B,D)

U(A,D)

T(R)=4000

T(S)=3000

T(W)=2000

T(U)=1000

V(R,A) =100

V(U,A) =100

V(R,B) =200

V(S,B) =100

V(W,B) =100

V(R,C) =100

V(S,C) = 300

V(W,D) =50

V(U,D) =100

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!