Postgres performance optimization matters for any database-driven app. Supabase shares expert guidelines to make your database faster and more reliable. These rules help you write better queries, design smarter schemas, and manage connections efficiently.
Developers can use this guide when writing SQL, reviewing existing code, or fixing slow database issues. It covers critical topics like indexing, query tuning, security with Row-Level Security, and connection pooling. Each rule comes with clear before-and-after examples and performance metrics.
Whether you are new to Postgres or an experienced user, these best practices will help you get the most out of Supabase and your database. Follow the priority order from critical to advanced for the biggest impact first.
Global
mkdir -p ~/.claude/skills/supabase-postgres-best-practicesProject
mkdir -p .claude/skills/supabase-postgres-best-practicesSource Repository
Firebase Data Connectfirebase/agent-skills
Build secure PostgreSQL backends with Firebase using GraphQL schemas and type-safe SDKs
Convex Migration Helperget-convex/agent-skills
Plan and run safe Convex schema migrations without downtime or data loss
Firebase Firestorefirebase/agent-skills
Master Cloud Firestore setup, queries, full-text search, security rules, and indexes
Neon Postgresneondatabase/agent-skills
Set up and manage Neon Serverless Postgres with ease and speed
Firebase Firestore Standardfirebase/agent-skills
Set up and secure Cloud Firestore with clear provisioning rules and SDK guides
Firebase Firestore Enterprise Native Modefirebase/agent-skills
Master Firestore Enterprise Native Mode provisioning data modeling security rules and SDK usage
Postgresql Table Designwshobson/agents
Design PostgreSQL tables with best practices for performance and reliability
Prisma Database Setupprisma/skills
Set up Prisma with any database PostgreSQL MySQL SQLite and MongoDB