Fractional CTO & Founder at Zentiq Labs | B2B SaaS Architecture, Distributed Systems & AI Integration | ctousman.com
Usman Khan is a Fractional CTO, Lead Systems Architect, and Founder of Zentiq Labs. With over 13 years of experience engineering high-concurrency B2B SaaS applications, he specializes in multi-tenant database isolation (PostgreSQL RLS), distributed Redis caching patterns, and production AI/LLM integrations. Usman writes architectural deep dives and engineering guides at ctousman.com.
Markdown supported · ⌘↵ to post
Parsa Aftabi
Good explainer. The operational side I'd add: set autovacuum_vacuum_scale_factor (and threshold) per-table for your hottest tables instead of relying on the global defaults. Defaults are tuned for average workloads, not hundreds of millions of rows. Two other classics. Fillfactor below 100 on heavily-updated tables is what makes HOT updates possible in the first place (no free space, no HOT). And a single long-running transaction can block vacuum for the whole table. pg_stat_activity is the first place I look when n_dead_tup keeps climbing.