Database / RocksDB Basics Interview Questions
What is a Block Cache in RocksDB?
The Block Cache is an in-memory cache that holds recently accessed data and index blocks from SSTables, reducing how often RocksDB needs to read from disk.
- Frequently accessed, or "hot," blocks stay in memory rather than being re-read from disk on every lookup
- Configurable in size, letting operators trade memory usage against read performance
- Shared across the database instance, so blocks from different SSTables can all benefit from the same cache
For read-heavy workloads, a well-sized block cache can be one of the single biggest levers for improving overall read latency.
More Related questions...