Question: 1 - ( 5 points ) You have been told that the following indexes are available on the Employee table on a MYSQL database: Are
points You have been told that the following indexes are available on the Employee table on a MYSQL database:
Are you suspicious that this information is not correct. Why?
points Assume in the table Employee, we have million records, and each storage page can have records. Calculate the average IO cost for the following query
Select from Employee where SIN
In following scenarios:
A We don't have any index on SIN and the database file are Heap files.
B We have B tree index on SIN, given each index page contains data entries, the file size is of the data size, and the tree fanout is Calculate your answer in two cases SIN wasn't primary key, and SIN was a primary Key
C We have hashing index on SIN, and SIN wasn't primary key
points You are tasked with designing a database for a MUNstudent management system. The student table includes two unique columns: studentld and Email. Most queries on this table predominantly utilize studentld, while some queries use Email. Both columns are defined with a storage size of CHAR Your team is debating the best approach for indexing these columns. You have two options:
Set studentld as the primary key with a B tree index on email.
Set Email as the primary key with a B tree index on studentld.
Question: Which approach do you believe is better? Provide a detailed explanation of your choice, considering performance implications such as query efficiency, indexing overhead.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
