Exercise 11.7 Consider a relation R(a, b, c, d) containing 1 million records, where each page of the relation holds 10 records. R is organized as a heap file with unclustered indexes, and the records...

HelpExercise 11.7 Consider a relation R(a, b, c, d) containing 1 million records, where<br>each page of the relation holds 10 records. R is organized as a heap file with unclustered<br>indexes, and the records in R are randomly ordered. Assume that attribute a is a<br>candidate key for R, with values lying in the range 0 to 999,999. For each of the<br>following queries, name the approach that would most likely require the fewest I/Os<br>for processing the query. The approaches to consider follow:<br>Scanning through the whole heap file for R.<br>Using a B+ tree index on attribute R.a.<br>Using a hash index on attribute R.a.<br>The queries are:<br>1. Find all R tuples.<br>2. Find all R tuples such that a < 50.<br>3. Find all R tuples such that a = 50.<br>4. Find all R tuples such that a > 50 and a < 100.<br>

Extracted text: Exercise 11.7 Consider a relation R(a, b, c, d) containing 1 million records, where each page of the relation holds 10 records. R is organized as a heap file with unclustered indexes, and the records in R are randomly ordered. Assume that attribute a is a candidate key for R, with values lying in the range 0 to 999,999. For each of the following queries, name the approach that would most likely require the fewest I/Os for processing the query. The approaches to consider follow: Scanning through the whole heap file for R. Using a B+ tree index on attribute R.a. Using a hash index on attribute R.a. The queries are: 1. Find all R tuples. 2. Find all R tuples such that a < 50.="" 3.="" find="" all="" r="" tuples="" such="" that="" a="50." 4.="" find="" all="" r="" tuples="" such="" that="" a=""> 50 and a <>

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here