Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(Query Processing) Let relation r1(A,B,C) and r2(C,D,E) have the following properties: r1 has 40000 tuples, r2 has 30000 tuples, 20 tuples of r1 fit on

image text in transcribed
(Query Processing) Let relation r1(A,B,C) and r2(C,D,E) have the following properties: r1 has 40000 tuples, r2 has 30000 tuples, 20 tuples of r1 fit on one block, and 10 tuples of r2 fit on one block. Estimate the number of block transfer and seeks required under the following scenarios: a. (5%) Assume that we implement Nested-loops join, and both r1,r2 are sorted. If we take r1 as the outer relation and r2 fits in memory, what is the number of block transfers and seeks required. b. (5%) Assume that we implement Nested-loops join, and only r2 is sorted. If there are only 3 memory blocks available and the minimal block transfers are required, what is the outer relation that we should pick from r1 and r2, and the number of block transfers and seeks required. c. (5%) Assume that we implement Block Nested-loops join, and none of the sorted. If we take r1 as the outer relation, and there are only 3 memory blocks available, what is the outer relation that we should pick from r1 and r2, and the number of block transfers and seeks required

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions