database-performance

Analyze execution plans and query logs to resolve database latency and throughput issues.

25|3|Updated Jul 14, 2026
One-click install
npx skills add https://github.com/nimadorostkar/Claude-Skills-collection --skill database-performance-nimadorostkar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-performance
Source: https://github.com/nimadorostkar/Claude-Skills-collection/tree/main/skills/data/database-performance
Command: npx skills add https://github.com/nimadorostkar/Claude-Skills-collection --skill database-performance-nimadorostkar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates guesswork in database optimization by providing a structured, evidence-based approach to identifying and fixing performance bottlenecks like slow queries, lock contention, and inefficient indexing.

Core Features & Use Cases

  • Query Profiling: Analyze EXPLAIN ANALYZE output to pinpoint high-latency operations and inefficient scan patterns.
  • Index Strategy: Determine optimal indexing strategies to balance read performance against write overhead.
  • Contention Diagnosis: Identify and resolve lock waits, deadlocks, and connection pool saturation issues.
  • Use Case: When an application endpoint experiences latency spikes, use this skill to analyze the database execution plan, identify missing indexes or N+1 query patterns, and implement targeted schema or query changes.

Quick Start

Use the database-performance skill to analyze the provided EXPLAIN ANALYZE output and suggest an indexing strategy to reduce execution time.

Frequently Asked Questions about database-performance

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose slow database queries using execution plans?

Diagnose slow database queries by analyzing EXPLAIN ANALYZE execution plans to pinpoint high-latency operations and inefficient scan patterns. This structured approach identifies the root cause of latency spikes by evaluating query logs alongside schema definitions to resolve performance bottlenecks.

What is the best way to resolve lock contention and connection pool saturation?

Resolve lock contention and connection pool saturation by analyzing database diagnostic logs to identify lock waits and deadlocks. Root cause analysis of resource saturation issues allows you to implement targeted schema or query changes that eliminate throughput bottlenecks in production environments.

How do I determine optimal indexing strategies without degrading write performance?

Determine optimal indexing strategies by analyzing schema configurations and execution plans to balance read performance against write overhead. Evaluating query logs and scan patterns reveals missing indexes or inefficient N+1 query patterns, enabling targeted schema changes that reduce execution time.

Can I use this approach for production environments experiencing latency spikes?

Yes, this approach applies directly to production environments experiencing latency spikes, slow queries, and resource saturation. It performs evidence-based root cause analysis using database diagnostic logs, execution plans, and schema definitions to remediate latency and throughput issues safely.

Why does my database experience latency spikes on specific application endpoints?

Database latency spikes on application endpoints often stem from missing indexes, inefficient scan patterns, or N+1 query patterns. Analyzing the database execution plan and query logs identifies these specific bottlenecks, allowing you to implement targeted query or schema changes for remediation.

What do I need to provide to analyze and optimize database performance?

To analyze and optimize database performance, you need to provide access to database diagnostic logs, EXPLAIN ANALYZE execution plans, and schema definitions. These inputs enable root cause analysis of latency, lock contention, and resource saturation to produce targeted remediation strategies.