consider the following information regarding the two relationships R and S Quest
ID: 3702775 • Letter: C
Question
consider the following information regarding the two relationships R and S
Explanation / Answer
The block nested loop join costing (I/O) is calculated as below
I/O= Outer page+ (outer page/block size)*innerpage
A.a
I/O= 100(tupples/blocking factor)+ (100/40)*50
I/O=100+125
I/O (with R as outer relation)=225
I/O= 50(tupples/blocking factor)+(50/40)*100
I/O=50+125
I/O (with S as outer relation)=175.
A.b The index nested loop cost metric is calculated as below
I/O=Outer page+(Outer page*Outerpage/block size)*cost of matching inner tupples
I/O= 100+(100/40)*1*50
I/O (with R as outer relation)=100+125
225
I/O= 50+(50/40)*2*100
I/O(with S as the outer relation)= 50+250
300.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.