Agent skill

query-optimization

SQL query optimization and performance tuning

Stars 2
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/pluginagentmarketplace/custom-plugin-sql/tree/main/skills/query-optimization

SKILL.md

Query Optimization Skill

Overview

Optimize SQL queries for maximum performance across different database systems.

Topics Covered

Query Analysis

  • EXPLAIN plans
  • Execution statistics
  • Cost-based optimization
  • Query profiling
  • Wait event analysis

Indexing Strategy

  • B-tree indexes
  • Covering indexes
  • Partial indexes
  • Index selection
  • Index maintenance

Query Patterns

  • JOIN optimization
  • Subquery alternatives
  • Aggregate optimization
  • Pagination patterns
  • Bulk operations

Database Specific

  • PostgreSQL optimization
  • MySQL tuning
  • SQL Server hints
  • Oracle optimization
  • Cloud DB optimization

Prerequisites

  • SQL fundamentals
  • Database internals basics

Learning Outcomes

  • Analyze query plans
  • Create effective indexes
  • Rewrite slow queries
  • Tune database performance

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results