0% found this document useful (0 votes)
25 views1 page

Table Information: Calculate The Total Space Reserved in Memory After De-Normalization Using Pre-Joining Technique

The document discusses calculating storage space requirements for a medical store's prescription database using normalization and de-normalization techniques. It states there are 10 million records in the prescription master table, with a 1:11 ratio to the detail table, resulting in 110 million detail records. It then calculates the storage needed as: Normalized at 8.1GB by summing the product of header bytes and record counts for each table. De-normalized at 11GB by using the combined header bytes for each record in the detail table.

Uploaded by

Muhammad Pervaiz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views1 page

Table Information: Calculate The Total Space Reserved in Memory After De-Normalization Using Pre-Joining Technique

The document discusses calculating storage space requirements for a medical store's prescription database using normalization and de-normalization techniques. It states there are 10 million records in the prescription master table, with a 1:11 ratio to the detail table, resulting in 110 million detail records. It then calculates the storage needed as: Normalized at 8.1GB by summing the product of header bytes and record counts for each table. De-normalized at 11GB by using the combined header bytes for each record in the detail table.

Uploaded by

Muhammad Pervaiz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Table Information

 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.

1. Calculate the total space reserved in memory using normalization?

Records in Prescription Table= 10 million


Records in Prescription Table detail= 11 * 10 million=110 million

total space reserved in memory using normalization= (byte header for master table * Records in
Prescription Table) + ( bytes header for details table * Records in P.T. Detail)

Total space reserved in memory using normalization= (40 * 10 000000)+(70 * 110 000000)
Total space reserved in memory using normalization= 400000000 + 7700000000
Total space reserved in memory using normalization= 8100 000 000 bytes =8.1GB

2. Calculate the total space reserved in memory after de-normalization using pre-
joining technique

total space reserved in memory after de-normalization= (bytes header for details table + bytes
header for master table - bytes reserved for Prescription_ID in memory) * Records in P.T. Detail

total space reserved in memory after de-normalization=(70+40-10)*110 000000


total space reserved in memory=100*110 000000=11 000 000 000 bytes= 11 GB

You might also like