database-optimization
Installation
SKILL.md
Database Optimization
EXPLAIN Analysis
Always run EXPLAIN ANALYZE before optimizing. Read the output bottom-up.
-- PostgreSQL
EXPLAIN (ANALYZE, BUFFERS, FORMAT TEXT) SELECT ...;
-- MySQL
EXPLAIN ANALYZE SELECT ...;
Key metrics to watch:
- Seq Scan on large tables = missing index
- Nested Loop with high row count = consider hash/merge join
- Sort without index = add index on sort column
- Rows estimated vs actual divergence = stale statistics, run
ANALYZE
Related skills
More from rohitg00/awesome-claude-code-toolkit
devops-automation
CI/CD pipeline design with GitHub Actions, Docker, Kubernetes, Helm, and GitOps patterns
116react-patterns
React 19 patterns including Server Components, Actions, Suspense, hooks, and component composition
88api-design-patterns
REST API design with resource naming, pagination, versioning, and OpenAPI spec generation
81redis-patterns
Redis patterns including caching strategies, pub/sub, streams for event processing, Lua scripts, and data structures
79frontend-excellence
Modern frontend patterns for React Server Components, performance optimization, and Core Web Vitals
79mobile-development
Mobile development patterns for React Native and Flutter including navigation, state management, and responsive design
77