Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions

Question

How would my performance in this position be measured?

Answered: 1 week ago

Question

demonstrate the importance of induction training.

Answered: 1 week ago