databases
10 minPostgreSQL MVCC and Indexes: Reads, Vacuum, and Query Plans
Connect PostgreSQL's multi-version concurrency control to transaction visibility, vacuum work, index choice, and EXPLAIN output.
Loading page...
databases
10 minConnect PostgreSQL's multi-version concurrency control to transaction visibility, vacuum work, index choice, and EXPLAIN output.
databases
19 minReason about isolation anomalies, query-plan mistakes, B-tree/LSM trade-offs, shard routing, and production-safe index changes.
databases
9 minUnderstand InnoDB's clustered primary key, secondary-index lookups, transaction behavior, and practical query-plan analysis.
Q&A
Q&AUsually the leading-column prefix matters; validate any skip-scan behavior on the target engine.
A composite B-tree is generally organized by its leading column, so omitting a can prevent efficient use of the index for b/c-only predicates. Some engines and versions may use skip scans under particular statistics, but do not assume it. Compare a candidate (b, c) index with the existing index using representative plans and write-cost measurements.
Q&A
Q&AWindow values are computed after WHERE in logical query processing.
WHERE filters source rows before window calculations are available. Put the window expression in a common table expression or derived table, then filter its rank in the outer query. This also makes the ranking input set explicit.
devops
5 minDesign a release as a controlled change to code, configuration, and data, with explicit health checks and a recovery plan that matches what can actually be reversed.
databases
10 minLearn tables, keys, constraints, joins, transactions, and query shape before choosing a specific database engine.
databases
10 minA systematic approach to diagnosing ORM query explosions and slow database plans without guessing at indexes.