Question:
I need to somehow save 1 (30 zeros) records, and search them in about 20 seconds. Records of the form (key> value) How does this matter carry out that? I understand one base is not enough here? =) ps records: 1,000,000,000,000,000,000,000,000,000,000
Answer:
Your number is written as 10 ^ 30;
Terabyte is 10 ^ 12. Petabytes – 10 ^ 15. Exabyte – 10 ^ 18.
Consider a standard 42U telecom cabinet. It can accommodate, in double-sided packaging, 42 2U disk shelves
Suppose that there are 24 4 TB disks on one shelf, in total, one cabinet stores 42 * 24 * 4 = 4032 TB of data, or 4 PB.
You only need 10 ^ (30-15) / 4 = 10 ^ 15/4 cabinets. Assuming that the cabinet occupies 1 square meter, we conclude that you need 10 ^ 15/4 square meters. It is 10 ^ 9/4 square kilometers.
The land area is 5 * 10 ^ 8 square kilometers.
It will take another 1.5 planets.