Skip to main content
jeremylongshore

sql-query-optimizer

by jeremylongshorev1.0.0

Analyze and optimize SQL queries for better performance, suggesting indexes, query rewrites, and execution plan improvements

Installation guide →
1 skill 1 commanddatabase GitHub

Commands

optimize-query

Analyze and optimize SQL queries for performance

Documentation

# SQL Query Optimizer Plugin

Analyze and optimize SQL queries for better performance with index suggestions and query rewrites.

## Installation

```bash
/plugin install sql-query-optimizer@claude-code-plugins-plus
```

## Usage

```bash
/optimize-query
```

## Features

- **Query Analysis**: Identify performance bottlenecks
- **Index Recommendations**: Suggest optimal indexes
- **Query Rewriting**: Provide optimized alternatives
- **Execution Plan Review**: Analyze EXPLAIN output
- **Best Practices**: Follow SQL optimization patterns

## Example

Paste your slow query and get optimization suggestions with expected performance improvements.

## Requirements

- SQL queries (PostgreSQL, MySQL, SQLite compatible)
- Access to EXPLAIN output (optional but helpful)

## License

MIT