ML
Topic

Database

ACID, isolation levels, indexing strategy, the N+1 trap, locking, and the day-to-day failure modes of relational databases — practical notes from real-world use.

9 articles · updated regularly

Database
Nov 30, 202612 min

LSM-Tree Write Amplification and Compaction Stalls: Why Heavy Ingestion Freezes RocksDB and Cassandra

Log-Structured Merge-trees provide lightning-fast sequential writes by buffering mutations in memory before flushing SSTables to disk. But under sustained ingestion, background compaction falls behind, triggering write stalls that freeze application throughput. How leveled compaction, write amplification, and compaction debt interact in production.

DatabaseStorage
Read
Database
Jun 26, 20269 min

Write Skew: The Anomaly Snapshot Isolation Quietly Allows

Two requests each removed a different admin from a project. Each one first checked that at least one other admin would remain, and each check passed, because at the moment it ran another admin really did still exist. Both committed. The project ended up with zero admins, and our Repeatable Read transactions never noticed a thing.

DatabasePostgres
Read