Skip to main content
Back to registry

sql-optimization-patterns

wshobson/agents

Transform slow database queries into lightning-fast operations through systematic optimization, proper indexing, and query plan analysis.

Installs5
Install command
npx skills add https://github.com/wshobson/agents --skill sql-optimization-patterns
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Transform slow database queries into lightning-fast operations through systematic optimization, proper indexing, and query plan analysis. Understanding EXPLAIN output is fundamental to optimization. PostgreSQL EXPLAIN: Key Metrics to Watch: Indexes are the most powerful optimization tool. Index Types: Avoid SELECT *: Use WHERE Clause Efficiently: Optimize JOINs: Problem: N+1 Query Anti-Pattern Solution: Use JOINs or Batch Loading Bad: OFFSET on Large Tables Good: Cursor-Based Pagination Optimize COUNT Queries: Optimize GROUP BY: Transform Correlated Subqueries: Use CTEs for Clarity: Batch INSERT: Batch UPDATE: Pre-compute expensive queries. Split large tables for better performance. - Debugging slow-running queries - Designing performant database schemas - Optimizing application response times - Reducing database load and costs - Improving scalability for growing datasets - Analyzing EXPLAIN query plans - Implementing efficient indexes - Resolving N+1 query problems - Seq Scan : Full table scan (usually slow for large tables) - Index Scan : Using index (good) - Index Only Scan : Using index without touching table (best) - Nested Loop : Join method (okay for small datasets) - Hash Join : Join method (good for larger datasets) - Merge Join : Join method (good for sorted data) - Cost : Estimated query cost (lower is better) - Rows : Estimated rows returned - Actual Time : Real...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does sql-optimization-patterns do?

Transform slow database queries into lightning-fast operations through systematic optimization, proper indexing, and query plan analysis.

Is sql-optimization-patterns good?

sql-optimization-patterns does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does sql-optimization-patterns work with?

sql-optimization-patterns currently lists compatibility with Agent compatibility has not been published yet..

What are alternatives to sql-optimization-patterns?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install sql-optimization-patterns?

npx skills add https://github.com/wshobson/agents --skill sql-optimization-patterns

Related skills

More from wshobson/agents

Related skills

Alternatives in Software Engineering