Question
1)Assume an index record occupies 8 bytes (4 for key, 4 for disk pointer). What is the size and number of blocks read to find
1)Assume an index record occupies 8 bytes (4 for key, 4 for disk pointer). What is the size and number of blocks read to find a record for the following primary index configurations: (2 marks)
Dense, primary index
Sparse, primary index
2)There is an integer foreign key in the table that is a candidate for secondary indexing.
What is the time required to retrieve one record with the foreign key value without an index? (1 mark)
What is the time required to retrieve a record with a secondary index? What is the size of the secondary index? (2 marks)
3)Determine how many levels of multi-level index are required for both the primary key index and foreign key index, so that the minimum # of disk accesses are performed to find a record. (2 marks) Hint:Determine the index level where all index pointers at that level fit into a single block.
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