PostgreSQL Partitioning for Multi-Tenant Audit Logs: Querying 100M Events Without Table Scans


I'll be direct: if you're running a SaaS with compliance requirements and your audit_logs table is approaching 50M rows, you're three months away from pain. I've watched audit queries go from 200ms to 8 seconds in production at 2am because someone ran a...