Question
As a system administrator for the accounting firm AFS, you are usually asked to import data from a regular source and upload the records to
As a system administrator for the accounting firm AFS, you are usually asked to import data from a regular source and upload the records to a heap file that needs to be sorted after the import. You want to write a script that will do that automatically, so you need to estimate the cost of the sort operation. Your DBMS uses external sort and makes efficient use of the available buffer space when it sorts a file. Information about the newly loaded file and the DBMS software available to operate on it are as follows:
The number of records in the file is 4500. The sort key for the file is 4 bytes long. You can assume that rids are 8 bytes long and page ids are 4 bytes long. Each record is a total of 48 bytes long. The page size is 512 bytes. Each page has 12 bytes of control information on it. Four buffer pages are available.
How many sorted subfiles will there be after the initial pass of the sort, and how long will each subfile be?
How many passes (including the initial pass just considered) are required to sort this file?
What is the total I/O cost for sorting this file?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started