Usually there is a setting called index_granularity, which tells the index how many keys it should save. So for example if the index_granularity is 5000, it will save 1 key every 5000 keys and so on. I don't there is anything to optimize here tbh but I am not 100% sure.
Great article, really enjoyed the build up of data structures ππ»
Omar Ashour
Omar Ashour
Thanks for sharing this great & well crafted article!
I've got a question, you mentioned that SSTables store only a few keys in memory. How is the decision made about which keys to keep in memory vs on disk? Is there a specific strategy for optimizing this selection?