Question: Assume that we have an ordered file that stores 1 8 0 0 0 0 records of relation STUDENT on disk. The block size is

Assume that we have an ordered file that stores 180000 records of relation STUDENT on disk. The block size is 512 Bytes. The fields of STUDENT Record are- sid (4 bytes), sname (8 bytes), sbranch (3 bytes), saddress (12 bytes), sadharID (5 bytes), scity (8 bytes). The record length is uniform. The primary Key field is sid and also defines the order of records in the file. Any block pointer takes 7 Bytes. Assume unspanned record organisation.
Do the following.
Design a multilevel index (with root-level) on sid. Now, (i) give the total number of data blocks needed, (ii) the number of index blocks in each level, and (iii) the number of block accesses needed to retrieve a record with the given sid (worst case).
Design a two-level index on sadharID. Now, (i) give the total number of data blocks needed, (ii) the number of index blocks in each level, and (iii) the number of block accesses needed to retrieve a record with the given sadharID (worst case).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!