A01 · MODULE 03 · L4 → L5 · 45 MIN1-CLICK VISUAL PREDICT-FIRST
Postgres 15 Internals, Composite Indexes & Connection Pools
Why a 4ms query suddenly turns into a 6-second cliff — and how Little’s Law governs every pool.
01 STORE08 NAME05 WAIT09 LIMITC1: Tail Latency & Fan-OutC2: Correctness & Invariants
STAGE 01 · 1-CLICK VISUAL PREDICT-FIRST
10 SEC · TAP A HYPOTHESIS60-Second Scene Orientation (No Answer Given): Your checkout API talks to Postgres 15 through PgBouncer (
default_pool_size = 2). Traffic hits 150 RPS and latency jumps from 4ms to 6.8 seconds.UNLABELED PRODUCTION SYMPTOM
p99 latency spikes to 6.8s, SHOW POOLS shows 140 cl_waiting, and EXPLAIN ANALYZE prints Seq Scan on orders.
Someone suggests bumping Postgres
max_connections from 100 to 1,500 to "give everyone a lane." Why does that make p99 WORSE?STAGE 02 · 5-BEAT FEYNMAN CONSOLIDATION
STAGE 03 · REAL EXECUTION LAB (COLD-NO-AI · TIER-A-1GB)
LOCKED UNTIL PREDICT-FIRSTTap a Stage 01 hypothesis card (or click Skip Struggle (Veteran)) to unlock the Execution Lab and Linked Job Workflows without spoiling the solution.
STAGE 04 · PRINCIPAL JUDGMENT GATE & 3-MIN ORAL DIFF-DEFENSE
LOCKED UNTIL PREDICT-FIRSTStage 04 stays collapsed until you complete Stage 01 so the hardened diff and Principal consequence chain do not spoil your prediction.