database-performance

Diagnose and optimize PostgreSQL database performance issues across the lifecycle.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/Emmraan/agent-skills --skill database-performance-emmraan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-performance
Source: https://github.com/Emmraan/agent-skills/tree/main/skills/database-performance
Command: npx skills add https://github.com/Emmraan/agent-skills --skill database-performance-emmraan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses slow database queries, high latency, and resource bottlenecks, guiding users through systematic analysis and optimization of database performance.

Core Features & Use Cases

  • Performance Diagnosis: Identifies bottlenecks through query analysis, execution plan review, and resource monitoring.
  • Query Optimization: Provides strategies for indexing, query rewriting, and configuration tuning.
  • Scalability Planning: Assists with capacity planning and performance testing.
  • Use Case: When users report that their application's order processing is slow, this Skill can analyze the orders table queries, identify missing indexes, and suggest creating them to improve response times.

Quick Start

Use the database-performance skill to analyze and optimize the slow GET /orders endpoint.

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 PostgreSQL queries and identify database performance bottlenecks?

Diagnose slow PostgreSQL queries by systematically reviewing SQL execution plans, analyzing database metrics, and monitoring system resource utilization to pinpoint exact performance bottlenecks. This process isolates inefficient query structures and missing indexes.

What is the best way to optimize SQL queries and improve database indexing strategies?

The best way to optimize SQL queries is by implementing targeted indexing strategies, rewriting inefficient query structures, and applying configuration tuning. This systematically addresses high latency and resolves slow database response times.

How does database configuration tuning and connection management affect scalability?

Database configuration tuning and connection management directly influence scalability by optimizing system resource utilization and maintaining throughput under heavy loads. Proper tuning prevents connection exhaustion and ensures stable concurrent query processing.

When do I need capacity planning and performance testing for PostgreSQL?

You need capacity planning and performance testing for PostgreSQL when anticipating increased data volume or higher concurrent user loads. This proactively identifies future resource limits and prevents degradation of query latency.

Can I use query optimization to fix slow application endpoints without changing application code?

Yes, you can fix slow application endpoints through query optimization alone by analyzing underlying table queries and creating missing indexes. This improves database response times without requiring application code modifications.

Why does execution plan review fail to resolve high latency in complex database systems?

Execution plan review may fail to resolve high latency if the core issue stems from exhausted system resources or inadequate connection management rather than inefficient query structures. Capacity planning and resource monitoring are then required.