Topic

Databases

Choosing, scaling and understanding databases: SQL, NoSQL, sharding and storage engines.

SQL vs NoSQL: How to Choose

SQL vs NoSQL explained: data models, consistency, scaling, query flexibility and when to use relational, document, key-value, wide-column or graph databases.

2 min read

Database Sharding Explained

What database sharding is, when you need it, how to choose a shard key, range vs hash vs directory sharding, and the operational pain points to plan for.

2 min read

Database Indexing Explained

How database indexes work: B-tree and other types, composite and covering indexes, why queries ignore indexes, the write cost and checking with EXPLAIN.

4 min read

ACID and Transaction Isolation Levels

ACID and isolation levels explained: dirty reads, lost updates, write skew and phantoms, what each level prevents, database defaults and practical fixes.

4 min read