Interview Bootcamp
Ask Author
Back to course home

0% completed

Vote For New Content
How is the index size for fixed size grid (4 * 20M) + (8 * 500M) ~= 4 GBShouldn'...

Surbhi Goel

Apr 3, 2022

How is the index size for fixed size grid (4 * 20M) + (8 * 500M) ~= 4 GB Shouldn't it be (4 * 20M) + ((8+8)* 500M) to include both longitude and latitude?

0

0

Comments
Comments
G
Gary 3 years ago

You are not storing the location coordinates (longitude and latitude) in the hash table. you are storing the location ID, which is only 8 bytes.