db
07/31/2025, 12:28 AMcriccomini
07/31/2025, 2:02 AMcriccomini
07/31/2025, 2:06 AMcriccomini
07/31/2025, 2:10 AMDbReader). The separate process/machine readers re-sync the data periodically so they see eventually consistent data.
To keep all data in memory, you could create N DbReaders spread across M nodes. Each DbReader could be assigned a range of they keyspace. When a read comes into your system, you determine which DbReader to fetch from. In doing so, that value is stored in cache. As long as the working set of each prefix range remains smaller than available memory on the node, you will end up with all your data in memory. (Things get more complicated if you want to do a scan() that spans prefix ranges.)
If you want to pre-warm the in-memory cache on each DbReader, you would need to do that yourself by calling get or scan.