How Database Locks Work: A Complete Guide
Learn how database locks work. Covers shared vs exclusive locks, row-level locking, deadlocks, optimistic vs pessimistic locking, MVCC, and SELECT...
From B-tree internals to PostgreSQL vs MongoDB comparisons, these guides explain how databases actually work under the hood. Covers indexing strategies, locking mechanisms, storage engines, and practical cheat sheets for the databases you use every day.
9 articles and counting
Learn how database locks work. Covers shared vs exclusive locks, row-level locking, deadlocks, optimistic vs pessimistic locking, MVCC, and SELECT...
Master MongoDB with this practical cheat sheet. Covers mongosh commands, CRUD operations, query operators, aggregation pipeline, indexes, schema validation, replication,...
Redis, DragonflyDB, or KeyDB? Compare architecture, real performance benchmarks, licensing, and when each one is the right choice for your...
Learn exactly when to use PostgreSQL, MongoDB, or DynamoDB. Covers ACID vs eventual consistency, horizontal scaling, cost at scale, real-world...
Master PostgreSQL with this practical cheat sheet. Covers psql commands, database management, table operations, queries, indexes, joins, JSON, backup and...
Learn how databases store data internally. Complete guide covering pages, B-trees, buffer pools, write-ahead logging, and storage engines. Understand heap...
Create a Django + PostgreSQL setup from scratch: uv and django-admin, create database and user, and configure settings.py in detail....
Learn how database indexing works, from B-tree internals to practical query optimization. Understand clustered vs non-clustered indexes, composite indexes, covering...
Postgre 18 brings async I/O with 3x performance gains, skip scan for multicolumn indexes, virtual generated columns, OAuth 2.0 authentication,...