Why are some databases fast at writes and others at reads? Under the hood, most ...

@hyc@mastodon.social

Why are some databases fast at writes and others at reads?

Under the hood, most databases are either a B-tree or an LSM tree. A B-tree updates data where it lives and pays for random writes; an LSM tree appends and sorts later, and pays at read time.

fungyaan.com/p/btree-vs-lsm