Where do you need to create your freelance profile?
Assignment No. 02
Semester: Fall 2019
CS614: Data Warehousing Total Marks: 10
Due Date: November 28, 2019
The objective of this assignment is to enhance the learning capabilities of the students about:
• Storage Issues of Pre-joining
Please read the following instructions carefully before submitting assignment:
You need to use MS word document to prepare and submit the assignment on VU-LMS.
It should be clear that your assignment will not get any credit if:
The assignment is submitted after due date.
The assignment is not in the required format (.doc or docx)
The submitted assignment does not open or file is corrupt.
Assignment is copied (partial or full) from any source (websites, forums, students, etc)
“Kare Pharma” is an online Medical store currently acquiring a large number of customers. To manage some performance issues this online Medical store requires to de-normalize its database using pre-joining technique for Prescription and Prescription details tables.
Normalized table structures are given below:
Prescription details Table
• Assume 1:11 record count ratio between Prescription table as master table and Prescription details table for online Medical store’s database.
• Assume 10 million records in Prescription Table.
• Assume 10 bytes reserved for Prescription_ID in memory.
• Assume 40 bytes header for master table and 70 bytes header for details table.
You are required to perform the following tasks:
Best of Luck!
Calculate the total space reserved in memory using normalization
Total space used = 10 x 40 + 110 x 70
= 8.1 GB
2. Calculate the total space reserved in memory after de-normalization using pre-joining technique
Total space used = ( 70 + 40 – 10) x 110