ss-database-optimizer

Optimize PostgreSQL and MySQL queries through index design and execution plan analysis.

Updated Feb 14, 2026
One-click install
npx skills add https://github.com/JasonLo/skill-sommelier --skill ss-database-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ss-database-optimizer
Source: https://github.com/JasonLo/skill-sommelier/tree/main/skills/ss-database-optimizer
Command: npx skills add https://github.com/JasonLo/skill-sommelier --skill ss-database-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses slow database performance by analyzing queries, identifying bottlenecks, and implementing optimizations for PostgreSQL and MySQL systems.

Core Features & Use Cases

  • Query Analysis: Investigates slow queries and analyzes execution plans.
  • Performance Tuning: Optimizes database performance through index design, query rewrites, and configuration adjustments.
  • Use Case: When a web application experiences slow load times due to database queries, this Skill can pinpoint the inefficient queries, suggest and create appropriate indexes, and validate the performance improvements.

Quick Start

Use the ss-database-optimizer skill to analyze and optimize the slow query identified in the logs.

Frequently Asked Questions about ss-database-optimizer

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

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

To optimize slow queries in PostgreSQL and MySQL, you analyze execution plans, rewrite inefficient queries, and design appropriate indexes. This approach pinpoints bottlenecks and validates performance improvements for web applications experiencing slow load times.

Why does my database performance degrade and how can I analyze execution plans?

Database performance degrades due to bottlenecks like missing indexes or lock contention. Analyzing execution plans helps investigate slow queries, identify inefficient operations, and implement solutions like query rewrites and configuration tuning.

What's the best way to resolve lock contention and tune database configuration?

The best way to resolve lock contention and tune database configuration is by investigating specific slow queries and their execution plans. You can then implement partitioning strategies and adjust configuration settings to improve throughput.

When do I need partitioning strategies for database query tuning?

You need partitioning strategies for database query tuning when analyzing execution plans reveals that the database scans massive tables inefficiently. Partitioning helps manage large datasets and resolve lock contention, significantly improving query performance.

Can I use index design to fix slow query performance without rewriting the entire query?

Yes, you can use index design to fix slow query performance without a full rewrite. By analyzing execution plans, you can identify missing indexes, create them to optimize data retrieval, and validate the performance improvements.

Does this database query optimization approach work for both PostgreSQL and MySQL systems?

Yes, this database query optimization approach works for both PostgreSQL and MySQL systems. It provides solutions for index design, query rewrites, configuration tuning, and partitioning strategies across both platforms to resolve slow performance.