3 ms·
Space is cheap. Time is expensive.
by eCa 13y ago
Space is cheap. Time is expensive.
- wobbleblob 13y agoThat's why your index should fit in RAM
- falcolas 13y agoIt takes a non-0 amount of time to load large indices into memory (upwards of 5 seconds, depending on your choice of disks and arrays), and to iterate through large indices once they are in memory. Such large indices also limit how many of them can be stored in memory at the same time - making transactions against those indexes slower over time if the indices have to be loaded and unloaded from memory frequently. You should always choose indexes with care, because indexes not only cost space, they cost time. And as you said, Time is expensive.
- mason55 13y ago> It takes a non-0 amount of time to load large indices into memory (upwards of 5 seconds, depending on your choice of disks and arrays), and to iterate through large indices once they are in memory. This is why MongoDB recommends all indices fit in memory
- bsg75 13y agoIn space, no one can hear you scream.
- penguat 13y agoIs that 800Mb in RAM? That could get expensive.
- saosebastiao 13y agoSpace is cheap, but IOPS are not, and RAM always has an opportunity cost.