All Questions
Scaling Reads hard

Why might a database using Log-Structured Merge (LSM) Trees (like Cassandra/RocksDB) have slower read performance for specific keys compared to a B-Tree database (like PostgreSQL)?

  1. A LSM Trees do not use indexes.
  2. B LSM Trees require checking the MemTable and potentially multiple SSTables on disk to find the latest version of a key, whereas a B-Tree usually finds the exact leaf page in fewer hops.
  3. C LSM Trees store data in RAM only.
  4. D B-Trees are immutable.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions