query-performance-tuning
CommunityDiagnose and fix slow database queries
Software Engineering#query tuning#denormalization#database performance#explain analyze#index selection#n+1 detection#working set
Authorohsonerdy
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you quickly identify why a database query is slow and choose the safest, highest-leverage fix by interpreting execution plans, index behavior, and working-set limits.
Core Features & Use Cases
- Diagnostic workflow before indexing: Confirm slowness, capture an actual plan with realistic parameters, identify the dominant slow node, then classify the root cause (wrong plan, wrong access path, or wrong working set).
- EXPLAIN interpretation: Read the plan effectively (sequential vs index scans, row estimates vs actuals, filter effectiveness, sort/hash join behavior) for PostgreSQL- and MySQL-style signals.
- Indexing and N+1 remediation: Recommend the right index shape (including composite/covering/partial patterns) and detect/fix N+1 query patterns common in ORM-heavy codebases.
- Denormalization vs indexing decision: Provide a rule-based approach to when denormalization (computed columns, materialized views, or read stores) becomes warranted.
- Working-set sizing and capacity actions: Determine whether the issue is disk-bound thrashing and select interventions like memory scaling, partitioning, archiving, or index bloat recovery.
Quick Start
Use it when you see that a request is slow and you want the fastest path to an actionable diagnosis: generate a slow-query tuning report for the specific SQL and its EXPLAIN ANALYZE output (with realistic parameters) explaining the failure mode and the most likely fix.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: query-performance-tuning Download link: https://github.com/ohsonerdy/openclaw-frontier-stack/archive/main.zip#query-performance-tuning Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.