Databases

Databases

Postgres internals, isolation levels, replication, pgvector, DuckDB, CDC.

73Articles
73Topics covered
Articles in this category

All 73 articles, sorted alphabetically

Advertisement
ARTICLE · 01

ClickHouse

Vectorized execution + MergeTree. Sub-second on billions of rows.

Read article
ARTICLE · 02

CockroachDB Architecture Deep Dive

Ranges + Raft + serializable isolation. PostgreSQL compatible.

Read article
ARTICLE · 03

Database Connection Pooling

PgBouncer, pgcat, cloud-native pools. Why pool + how to tune.

Read article
ARTICLE · 04

Database Indexing

Composite, covering, partial, expression. Right index for right query.

Read article
ARTICLE · 05

ACID Transactions

The ACID properties, why they matter for correctness, and how databases implement each.

Read article
ARTICLE · 06

Bitmap index architecture

Deep-dive on bitmap indexes: one bitmap per distinct value, boolean AND/OR/NOT and popcount query evaluation, compression with RLE/Roaring, where they…

Read article
ARTICLE · 07

Bloom filter architecture in LSM engines

Deep-dive on Bloom filters in log-structured merge-tree databases: how a compact bit array and k hash functions answer 'defin…

Read article
ARTICLE · 08

Buffer pool architecture

Deep-dive on database buffer pools: page tables and frames, pin counts and latches, clock sweep and midpoint LRU scan resistance, the WAL-before-data …

Read article
ARTICLE · 09

CDC via logical decoding

Deep-dive on Change Data Capture via logical decoding: WAL-based change streaming, logical decoding of physical records, replication slots and output …

Read article
ARTICLE · 10

Columnar Database Architecture in Depth

A 2500-word walkthrough of columnar databases: columnar storage, vectorized engine, compression, predicate pushdown, SIMD, parallelism, OLAP fit.

Read article
ARTICLE · 11

Connection pooling architecture

Deep-dive on database connection pooling: why connections are expensive, application pools vs proxy poolers, session vs transaction pooling trade-offs…

Read article
ARTICLE · 12

Database deadlock detection architecture

Deep-dive on deadlock handling in databases: the lock manager and wait-for graph, eager vs lazy cycle detection, victim-selection policies, timeout fa…

Read article
ARTICLE · 13

GIN inverted index architecture

Deep-dive on the Generalized Inverted Index (GIN): extracting many keys per composite value, mapping each key to a sorted posting list of row ids with…

Read article
ARTICLE · 14

Group commit architecture

Deep-dive on database group commit: why one fsync per transaction caps throughput at flush latency, how the commit queue and group leader let many com…

Read article
ARTICLE · 15

Hash join architecture

Deep-dive on the hash join: the algorithm that makes equality joins on large, unindexed relations fast by building a hash table on the smaller input a…

Read article
ARTICLE · 16

Index-only scan architecture

Deep-dive on index-only scans in Postgres: covering index, visibility map, VACUUM, INCLUDE, fallback, cost model.

Read article
ARTICLE · 17

B-tree Indexes

How B-tree indexes work, why they're the default, and how they enable range queries and sorting.

Read article
ARTICLE · 18

Hash Indexes

How hash indexes support O(1) equality lookup, why they don't support ranges, and when to prefer them over B-trees.

Read article
ARTICLE · 19

Database indexing architecture

Deep-dive on database indexing: B-tree, LSM, hash, partial, expression, covering, concurrency, maintenance, observability.

Read article
ARTICLE · 20

Database Isolation Levels

The SQL standard isolation levels, the anomalies they permit, and how modern databases implement them.

Read article
ARTICLE · 21

LSM-tree storage engine architecture

Deep-dive on the Log-Structured Merge tree: WAL-plus-MemTable write path, immutable SSTables with bloom filters and block index, L0/L1..Ln level struc…

Read article
ARTICLE · 22

Materialized views -- precomputed query results

Deep-dive on database materialized views: the expensive-query need, precomputing and storing results, materialized vs regular view (stored vs recomput…

Read article
ARTICLE · 23

MVCC

How MVCC lets readers and writers coexist without locks, and why it powers Postgres, MySQL InnoDB, and Oracle.

Read article
ARTICLE · 24

MVCC -- readers and writers that never block each other

Deep-dive on Multi-Version Concurrency Control (MVCC): the reader-writer contention problem, keeping multiple versions, consistent snapshots, no read …

Read article
ARTICLE · 25

OLTP vs OLAP Database Architectures in Depth

A 2500-word walkthrough of OLTP row stores vs OLAP column stores, CDC/ETL pipelines, lakehouse architectures, and HTAP alternatives.

Read article
ARTICLE · 26

Database partitioning architecture

Deep-dive on database partitioning: range, hash, list, composite, partition key, pruning, local + global indexes, maintenance.

Read article
ARTICLE · 27

Database Query Planner

How the query planner translates SQL into an execution plan, why statistics matter, and how EXPLAIN reveals what's happening.

Read article
ARTICLE · 28

Database query planner architecture

Deep-dive on database query planner: parser, logical plan, rewriter, cost model, physical plan, join order, adaptive execution.

Read article
ARTICLE · 29

Database Replication

How database replication works: streaming, logical, sync vs async, and the operational realities.

Read article
ARTICLE · 30

Database replication architecture

Deep-dive on database replication: sync vs async, physical vs logical, multi-master with conflict resolution, failover with fencing.

Read article
ARTICLE · 31

Serializable Isolation

How serializable isolation guarantees transactions behave as if serial, the anomalies weaker levels permit, and modern implementations.

Read article
ARTICLE · 32

Database Sharding

How sharding splits data across nodes for scale, sharding key selection, and cross-shard query challenges.

Read article
ARTICLE · 33

Database sharding -- horizontal partitioning across nodes

Deep-dive on database sharding: the single-node limit, the critical shard key choice, sharding strategies (hash/range/directory), routing, hot shards …

Read article
ARTICLE · 34

Snapshot isolation architecture

Deep-dive on snapshot isolation: MVCC, read-view, write-write conflict, write skew anomaly, SSI escalation, vacuum.

Read article
ARTICLE · 35

Transaction isolation architecture

Deep-dive on transaction isolation: MVCC, snapshot, isolation levels, write skew, predicate locks, SSI, vacuum, and deadlock detection.

Read article
ARTICLE · 36

Transactional Database Architecture in Depth

A 2500-word walkthrough of transactional DB: MVCC, lock manager, WAL/redo, rollback, isolation levels, 2PC, vacuum, recovery.

Read article
ARTICLE · 37

Two-phase commit architecture

Deep-dive on two-phase commit: the prepare and decide phases, write-ahead logging on coordinator and participants, held locks and the in-doubt window,…

Read article
ARTICLE · 38

Vacuum and bloat architecture

Deep-dive on Postgres vacuum and bloat: why MVCC updates leave dead tuples, the cluster-wide visibility horizon and the idle transactions, replication…

Read article
ARTICLE · 39

Vector Database Architecture in Depth

A 2500-word walkthrough of vector database architecture: embedder, HNSW/IVF/DiskANN indexes, metadata filter, hybrid search, quantization, sharding.

Read article
ARTICLE · 40

Database Write-Ahead Log

How the WAL provides durability, enables recovery from crashes, and supports replication and PITR.

Read article
ARTICLE · 41

WAL architecture

Deep-dive on write-ahead logging: WAL append, LSN ordering, fsync, group commit, checkpoint, replay, archive, storage.

Read article
ARTICLE · 42

Write amplification architecture

Deep-dive on write amplification in LSM storage engines: the WAL/memtable/flush path, leveled vs tiered compaction rewrites, the read/write/space trad…

Read article
ARTICLE · 43

DuckDB

In-process OLAP. Columnar. No server. Modern data science default.

Read article
ARTICLE · 44

DuckDB Practical Uses

Local analytics embedded OLAP CSV crunching.

Read article
ARTICLE · 45

DynamoDB

Partition + sort key + GSI + LSI. Read/write capacity + on-demand.

Read article
ARTICLE · 46

Postgres Logical Replication Use Cases

Beyond HA — sharding migration CDC.

Read article
ARTICLE · 47

Materialized Views in Postgres

Refresh strategies and concurrent refresh patterns.

Read article
ARTICLE · 48

MongoDB

BSON docs + WiredTiger + sharding. Modern MongoDB architecture.

Read article
ARTICLE · 49

MongoDB: When It Actually Fits

And when Postgres JSONB is the better answer.

Read article
ARTICLE · 50

MySQL InnoDB

Clustered index + row locks + redo log. Understand for tuning.

Read article
ARTICLE · 51

MySQL Replication

Row/statement/mixed. GTID for automation. Group replication.

Read article
ARTICLE · 52

MySQL vs Postgres in 2026

When MySQL still wins.

Read article
ARTICLE · 53

pgvector at 100M Scale

HNSW tuning partitioning hybrid filtering.

Read article
ARTICLE · 54

PostgreSQL WAL

Durability + replication foundation. Understand WAL to tune Postgres.

Read article
ARTICLE · 55

Postgres Index Strategies

B-tree, GIN, GiST, BRIN — when each one wins.

Read article
ARTICLE · 56

PostgreSQL Indexes

Right index for right query. When each shines.

Read article
ARTICLE · 57

Postgres Isolation Levels

Read committed repeatable read serializable.

Read article
ARTICLE · 58

PostgreSQL Logical Replication + CDC

Row-level replication. Selective + cross-version. Debezium base.

Read article
ARTICLE · 59

PostgreSQL MVCC + Vacuum

Multi-version concurrency + tuple bloat + autovacuum tuning.

Read article
ARTICLE · 60

PostgreSQL Table Partitioning

Declarative range/list/hash partitions. Scale + retention.

Read article
ARTICLE · 61

PostgreSQL Streaming Replication

Primary + replicas. Sync vs async. Failover patterns.

Read article
ARTICLE · 62

Redis Data Structures

Beyond strings — sorted sets streams and HyperLogLog.

Read article
ARTICLE · 63

Redis

Strings, hashes, lists, sets, sorted sets, streams. Persistence + cluster.

Read article
ARTICLE · 64

Redis Persistence Modes

RDB, AOF, none — pick by what you can lose.

Read article
ARTICLE · 65

ScyllaDB vs Cassandra

C++ rewrite trade-offs and operational differences.

Read article
ARTICLE · 66

Sharding Strategies Compared

Hash range and directory-based with the gotchas of each.

Read article
ARTICLE · 67

SQL Query Optimization

Read execution plans. Find missing indexes. Rewrite for perf.

Read article
ARTICLE · 68

TimescaleDB

Hypertable abstraction. Continuous aggregates. Compression.

Read article
ARTICLE · 69

TimescaleDB vs InfluxDB

Both target time-series; the trade-offs are real.

Read article
ARTICLE · 70

TimescaleDB vs InfluxDB vs Prometheus

Long-term storage vs real-time monitoring.

Read article
ARTICLE · 71

When to Pick Cassandra

Write-heavy multi-region with eventual consistency.

Read article
ARTICLE · 72

When to Pick DynamoDB

Single-table design and access pattern modeling.

Read article
ARTICLE · 73

When to Pick Postgres

The default-good choice and when it isn't enough.

Read article