Estimate the time in milliseconds to update the search-key value of a row in the table of Exercise 9.17 when each of the following is used:

a. No index (?le sorted on the search key)
b. A static hash index (where the updated row goes in a di?erent bucket than the original row’s page, but no over?ow pages are required)
c. A clustered, unintegrated B+ tree index (where the updated row goes on a di?erent page than the original row’s pages, but no node splitting is required)


a. As in Exercise 9.18 it takes 280ms to locate the row to be updated and another 20ms to delete the row from the page. Another 280+20ms is required to locate and update the new page in which the row is to reside. Hence a total of 600ms is required.
b. 40ms to update the old bucket and 40ms to update the newbucket.
c. Using the answer to Exercise 9.18 it takes 120ms to delete the row and update the index and another 120ms to insert the updated row and update the index. Hence, 240ms are required.

Computer Science & Information Technology

You might also like to view...

The data type returned from a string-building function is:

a. char b. char * c. string d. string * e. none of the above

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. Besides the obvious advantage of clarifying the logic and relationships found in human languages, structured English has another important advantage as a communication tool. 2. If communication is unimportant, structured English is a viable alternative for decision analysis. 3. Decision trees are most often drawn on their side, with the root of the tree on the left-hand side paper, branching out to the right. 4. It is useful to combine conditions and actions when drawing decision trees.

Computer Science & Information Technology

One way to restrict the access to Web pages is to require users to ____ before they can view the pages.

A. register through the Internet B. register in person C. log in D. download a warning page

Computer Science & Information Technology

Bill leaves Chicago at 4:00 P.M. traveling east on Interstate 90 toward Toledo, 200 miles away. Jim leaves Toledo at the same time, traveling west toward Chicago on the same road. They pass each other at 6:00 P.M. If Bill travels at 55 miles per hour, how fast is Jim traveling?

Solve the following time-rate-distance problems using the IPO method. Ignore time zones.

Computer Science & Information Technology