Neon Postgres Egress Optimizer
Official
Database Management
Diagnoses and fixes excessive database network data transfer (egress) in Postgres applications to optimize costs.
The Neon Postgres Egress Optimizer is a specialized database skill designed to identify, analyze, and resolve high network egress charges in Postgres applications. By leveraging pg_stat_statements diagnostics and evaluating code-level query patterns, this skill pinpoints expensive database anti-patterns—such as unpaginated SELECT statements, unnecessary column fetching, application-side aggregations, and redundant JOINs. It provides developers with actionable query refactoring strategies, caching suggestions, and Neon-specific infrastructure configurations to systematically reduce operational costs and improve query efficiency.
Key Features
01Automated diagnostic query execution using pg_stat_statements
02Optimization of Neon serverless compute settings and branch TTLs via neon.ts
03Detection of expensive database anti-patterns like SELECT * overfetching
04Actionable refactoring recommendations for pagination, caching, and joins
05Measurement reset workflows to verify and compare post-fix egress savings
0676 GitHub stars
Use Cases
01Reducing unexpectedly high Neon serverless database billing and egress charges
02Refactoring bloated database queries during codebase performance audits
03Configuring non-production databases to auto-expire and scale to zero safely