Slow database queries can slow down your whole application. SQL optimization makes them fast. This skill teaches you how to use indexes, analyze EXPLAIN plans, and fix common problems like N+1 queries. You will learn to design better database schemas and improve application performance.
Database administrators and developers can use these patterns to reduce load and costs. The skill covers B-Tree, GIN, and other index types. It also shows how to write efficient JOINs and avoid slow practices like SELECT *.
Start with query execution plans and work through real examples. Master these techniques and your queries will run in milliseconds instead of minutes.
Global
mkdir -p ~/.claude/skills/sql-optimization-patternsProject
mkdir -p .claude/skills/sql-optimization-patternsSource Repository
Supabase Postgres Best Practicessupabase/agent-skills
Follow Supabase's expert guidelines for faster Postgres queries and smarter schema design
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