postgres-best-practices

Installation
SKILL.md

Postgres Best Practices

Postgres performance optimization guidelines from Supabase, prioritized by impact.

Categories (Priority Order)

1. Query Performance (Critical)

  • Use EXPLAIN ANALYZE to understand query plans
  • Add indexes on frequently queried columns (WHERE, JOIN, ORDER BY)
  • **Avoid SELECT *** - specify only needed columns
  • Use LIMIT for large result sets
  • Optimize JOINs - ensure foreign keys are indexed
  • Use prepared statements (Supabase client does this automatically)
  • Batch operations when possible

2. Connection Management (Critical)

Installs
34
First Seen
Feb 6, 2026
postgres-best-practices — santiagoxor/pintureria-digital