# Database performance tuning (/performance--db-performance)

/performance--db-performance is a Claude Code skill in the Code section. Finds your slowest database queries from real data and applies fixes such as indexes, rewritten queries and connection pool changes.

- Web version: https://skills.sgomez.dev/en/s/performance--db-performance
- Section: [Code](https://skills.sgomez.dev/en/code.md)
- Author: Santiago Gómez de la Torre
- License: MIT
- Source: https://github.com/sgomez-dev/claude-skills/blob/main/skills/performance/db-performance.md
- Updated 10 Jul 2026

## How to ask for it

- `/performance--db-performance why is this query so slow`
- `/performance--db-performance check if we're missing indexes on this table`
- `/performance--db-performance analyze our connection pool, it keeps running out`

## Install

macOS · Linux:

```
curl -fsSL https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.sh | bash
```

Windows:

```
irm https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.ps1 | iex
```

Claude Code plugin:

```
/plugin marketplace add sgomez-dev/claude-skills
/plugin install performance-skills@claude-skills-collection
```

## Permissions

- Reads: `**/*`
- Writes: `**/*`
- Runs: —
- Network: No
- Destructive: No

## Author's description

Diagnose database performance: slow query logs, indexing, pooling, hot paths

- [How we review this](https://skills.sgomez.dev/en/methodology.md)
