Explain it in 60 seconds
B-trees vs LSM trees
System Design · Databases · Intermediate
What is the difference between B-tree and LSM-tree storage engines?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- B-tree: update in place, good reads.
- LSM: append to memtable, flush to sorted files.
- LSM: very fast writes.
- Compaction merges files in background.
- B-tree: Postgres/MySQL; LSM: Cassandra/RocksDB.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.