database-optimizer

Analyze slow PostgreSQL and MySQL queries and generate index strategies.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/VXerys/marketiv-web --skill database-optimizer-vxerys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-optimizer
Source: https://github.com/VXerys/marketiv-web/tree/main/00_BACKEND/.agents/skills/database-optimizer
Command: npx skills add https://github.com/VXerys/marketiv-web --skill database-optimizer-vxerys

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires psutil, sqlparse, pandas, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of optimizing database performance by analyzing slow queries, suggesting index strategies, and providing code to improve database efficiency.

Core Features & Use Cases

  • Performance Analysis: Analyze and identify slow queries and bottlenecks.
  • Index Strategies: Recommend and implement index designs to improve query performance.
  • Query Rewriting: Suggest query rewrites for better execution plans.
  • Use Case: If you're experiencing slow database performance and want to optimize your PostgreSQL or MySQL databases, this Skill can help you identify and fix the issues.

Quick Start

Run the database-optimizer skill with your slow query and get optimized suggestions.

Frequently Asked Questions about database-optimizer

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

FAQPage Schema
How do I optimize slow database queries in PostgreSQL and MySQL?

To optimize slow database queries, you need to analyze query logs to identify bottlenecks, rewrite queries for better execution plans, and implement targeted index strategies. This approach improves overall database performance and efficiency for PostgreSQL and MySQL.

What is the best way to design an index strategy for database performance optimization?

The best way to design an index strategy is by analyzing slow queries and statistics to identify bottlenecks, then generating optimized index designs tailored to your schema. This ensures queries hit the correct indexes and reduces execution time.

Do I need access to query logs to fix slow database performance?

Yes, you need access to PostgreSQL and MySQL databases with query logs and statistics to fix slow database performance. Analyzing this data is required to accurately identify bottlenecks and generate effective index strategies and query rewrites.

Can I use query rewrite techniques for database partitioning?

Yes, query rewrite techniques can be combined with database partitioning to improve execution plans. By rewriting queries to align with partition structures, you enhance database performance and reduce the overhead of scanning unnecessary data.

Why does my database optimizer suggest rewriting queries instead of just adding indexes?

Your database optimizer suggests rewriting queries because adding indexes alone cannot fix inefficient execution plans. Rewriting queries restructures how the database retrieves data, often yielding better performance improvements than index adjustments alone.