Question
Consider a database with two tables, namely, Customer and Purchase. There are 4000 records in Customer table and 75000 records in Purchase table. One disk
Consider a database with two tables, namely, Customer and Purchase. There are 4000 records in Customer table and 75000 records in Purchase table. One disk page can store 10 Customer records or 15 Purchase records. Assume that 202 memory pages are used as buffer. What are the IO cost (excluding IO cost to write results to disk) of the following join operations between Customer table and Purchase table (measured in the number of disk page accesses)? Which strategy appears to have the lowest cost?
Qa) Nested-Loop Join (Purchase is in the outer loop).
Qb) Nested-Loop Join (Customer is in the outer loop).
Qc) Partition-hash join.
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