How it works
Write path
A B-tree locates and changes a page, while an LSM tree appends to a log, updates memory, and shifts sorting work into background compaction.
Read path
A B-tree follows a short page path to the target, while an LSM lookup may consult memory and several sorted files.
Amplification
B-trees can amplify random I/O and page updates; LSM trees can amplify reads and rewrite data repeatedly during compaction.
Workload fit
Use actual point-read, range-scan, write-rate, storage, and latency requirements instead of assuming one structure is universally faster.