B-Tree and LSM-Tree (contrast)

Two distinct storage structures: balanced multiway search trees and log-structured merge storage.

Method

B-trees maintain balanced nodes for indexed lookup. LSM designs buffer writes in memtables, maintain sorted files and compact them; RocksDB is an LSM implementation supporting multiple storage media.

Applications

Postgres, MySQL, RocksDB, Cassandra, LevelDB.

Advantages

Makes the selected model or measurement explicit; usefulness depends on context.

Limitations

This is a contrast, not an alias or one algorithm; write/read amplification and performance depend on the design and workload.

Editorial clarification

This is a contrast, not an alias or one algorithm; write/read amplification and performance depend on the design and workload.

Sources

Educational reference only, not professional advice.

All algorithms