Exercise 20.5 Consider the following BCNF relation, which lists the ids, types (e.g., nuts or bolts), and costs of various parts, along with the number available or in stock: Parts (pid, pnaте, сost,...

pleaseExercise 20.5 Consider the following BCNF relation, which lists the ids, types (e.g.,<br>nuts or bolts), and costs of various parts, along with the number available or in stock:<br>Parts (pid, pnaте, сost, пит-аvail)<br>You are told that the following two queries are extremely important:<br>Find the total number available by part type, for all types. (That is, the sum of<br>the num_avail value of all nuts, the sum of the num_avail value of all bolts, and<br>so forth)<br>List the pids of parts with the highest cost.<br>1. Describe the physical design that you would choose for this relation. That is, what<br>kind of a file structure would you choose for the set of Parts records, and what<br>indexes would you create?<br>2. Suppose your customers subsequently complain that performance is still not satis-<br>factory (given the indexes and file organization you chose for the Parts relation in<br>response to the previous question). Since you cannot afford to buy new hardware<br>or software, you have to consider a schema redesign. Explain how you would try<br>to obtain better performance by describing the schema for the relation(s) that you<br>would use and your choice of file organizations and indexes on these relations.<br>3. How would your answers to the two questions change, if at all, if your system did<br>not support indexes with multiple-attribute search keys?<br>

Extracted text: Exercise 20.5 Consider the following BCNF relation, which lists the ids, types (e.g., nuts or bolts), and costs of various parts, along with the number available or in stock: Parts (pid, pnaте, сost, пит-аvail) You are told that the following two queries are extremely important: Find the total number available by part type, for all types. (That is, the sum of the num_avail value of all nuts, the sum of the num_avail value of all bolts, and so forth) List the pids of parts with the highest cost. 1. Describe the physical design that you would choose for this relation. That is, what kind of a file structure would you choose for the set of Parts records, and what indexes would you create? 2. Suppose your customers subsequently complain that performance is still not satis- factory (given the indexes and file organization you chose for the Parts relation in response to the previous question). Since you cannot afford to buy new hardware or software, you have to consider a schema redesign. Explain how you would try to obtain better performance by describing the schema for the relation(s) that you would use and your choice of file organizations and indexes on these relations. 3. How would your answers to the two questions change, if at all, if your system did not support indexes with multiple-attribute search keys?

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here