What problem does it solve?
This guide removes ambiguity when diagnosing and fixing Postgres performance problems on Supabase by providing prioritized, actionable rules and concrete SQL rewrites that reduce query latency, connection exhaustion, and schema-level inefficiencies.
Core Features & Use Cases
- Prioritized Rule Set: Eight categories from critical query performance and connection management to advanced features, ordered by impact.
- Concrete Examples: For each rule, incorrect and correct SQL examples, EXPLAIN guidance, and measurable impact estimates to support automated optimization and developer reviews.
- Operational Guidance: Best practices for connection pooling, prepared statements, RLS performance, indexing strategies, partitioning, and maintenance tasks.
- Use Cases: Quickly identify missing indexes for slow queries, tune autovacuum and statistics, eliminate N+1 patterns, configure PgBouncer for serverless apps, and harden RLS policies with performance-conscious patterns.
Quick Start
Ask the supabase-postgres-best-practices skill to analyze a slow query or schema and return prioritized fixes including index changes, query rewrites, and configuration recommendations.