Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider a database with a relation containing 1 , 5 0 0 , 0 0 0 fixed length records. The file system used by the

Consider a database with a relation containing 1,500,000 fixed length records. The file system used by the database has a block size of 2048 bytes, of which 2000 bytes are available for the storage of records. The length of each record is 240 bytes and the length of the attribute being used as a key is 12 bytes. A block pointer takes up 6 bytes, whereas a record pointer takes up 8 bytes. The records are stored in a sequential (sorted) file, and records may not span be- tween blocks. In order to allow for future expansion, space equivalent to one record is left free in each block.
(i) How many blocks are needed to store the data file for this relation? [3 marks]
(ii) How many blocks are needed to store a dense primary index for this relation?[3 marks]
(iii) How many blocks are needed to store a sparse primary index for this relation?[3 marks]
(iv) How many blocks are needed to store a secondary index for this relation, if keys are repeated?[3 marks]
(v) How many blocks are needed to store a secondary index for this relation, using indirection via buckets of pointers? You may assume that there are 100,000 distinct values for the secondary key.[3 marks]

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

More Books

Students also viewed these Databases questions

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago