database-optimizer

Diagnose slow queries and execution plans for PostgreSQL and MySQL.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/rawhit-r/ai-files --skill database-optimizer-rawhit-r
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-optimizer
Source: https://github.com/rawhit-r/ai-files/tree/main/.gemini/database-optimizer
Command: npx skills add https://github.com/rawhit-r/ai-files --skill database-optimizer-rawhit-r

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Investigating and optimizing database performance across PostgreSQL and MySQL, to reduce slow queries, improve execution plans, and design effective indexing and configuration changes.

Core Features & Use Cases

  • Analyze Performance: Review slow queries, execution plans, and system metrics.
  • Identify Bottlenecks: Find inefficient queries, missing indexes, and misconfigurations.
  • Design Solutions: Propose index strategies, query rewrites, and schema improvements.
  • Implement Changes: Apply optimizations incrementally with validation.
  • Validate Results: Confirm performance gains with measured metrics.

Quick Start

Run a performance diagnostic on your database to identify slow queries, generate an EXPLAIN ANALYZE plan, implement a safe optimization, and verify impact.

Frequently Asked Questions about database-optimizer

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

FAQPage Schema
How do I diagnose slow queries using execution plans in PostgreSQL and MySQL?

To diagnose slow queries, generate an EXPLAIN ANALYZE execution plan to identify bottlenecks. Reviewing execution plans reveals missing indexes and inefficient query structures, enabling targeted query rewrites and index design improvements.

What is the best way to design indexes for microservice databases?

Designing indexes for microservice databases requires analyzing execution plans across services to identify query bottlenecks. Apply index strategies and schema improvements incrementally, validating performance gains through measured metrics.

Can I optimize database configuration across multiple services simultaneously?

You can optimize database configuration across services by diagnosing execution plans and system metrics. Focus on applying incremental configuration tuning and query rewrites across PostgreSQL and MySQL environments, validating changes with measured outcomes.

Why does my database query execution plan show unexpected performance issues?

Unexpected execution plan performance issues often stem from inaccurate statistics or missing indexes. Diagnose the slow query using EXPLAIN ANALYZE to find inefficient queries and misconfigurations, then apply validated index design changes.

Do I need accurate statistics before optimizing database performance?

Accurate statistics are required to optimize database performance effectively. Diagnosing slow queries and execution plans relies on accurate statistics to identify true bottlenecks and propose effective index strategies and query rewrites.

How do I validate database configuration tuning and query rewrites?

Validate database configuration tuning and query rewrites by applying optimizations incrementally and confirming performance gains with measured metrics. Diagnose slow queries before and after changes to ensure measured outcomes improve execution plans.