← Back to Browse
Performance

QueryTune

Analyzes and optimizes SQL queries with AI-powered suggestions for indexes and rewrites.

★★★★★ 4.9 412 reviews
15.2k installs
v1.5.2 MIT

Install

npx skilldock install query-tune

About

QueryTune hooks into your database driver to capture slow queries, analyze execution plans, and suggest optimizations. It recommends missing indexes, rewrites suboptimal JOINs, and identifies N+1 query patterns. Supports PostgreSQL, MySQL, and SQLite.

Usage Example

const { QueryTune } = require("query-tune");

// Wrap your pool
const pool = QueryTune.wrap(pgPool, {
  slowThreshold: 100, // ms
  suggest: true,
  autoIndex: false
});