engineering-database-optimizer

Optimize PostgreSQL, MySQL, Supabase, and PlanetScale database performance with EXPLAIN ANALYZE.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the critical need for efficient and scalable database performance by optimizing schema design, query execution, and indexing strategies. It helps prevent performance bottlenecks and ensures databases can handle increasing loads.

Core Features & Use Cases

  • Schema Design: Expert advice on creating robust and scalable database schemas.
  • Query Optimization: Deep analysis of query plans using EXPLAIN ANALYZE to identify and fix slow queries.
  • Indexing Strategies: Guidance on implementing effective B-tree, GiST, GIN, and partial indexes.
  • N+1 Query Prevention: Techniques to refactor code and queries to avoid inefficient data fetching patterns.
  • Safe Migrations: Strategies for performing database migrations with minimal downtime and rollback capabilities.
  • Connection Pooling: Recommendations for managing database connections efficiently.
  • Use Case: A developer is experiencing slow load times on their application's dashboard, which heavily relies on database queries. They can use this Skill to analyze their most frequent queries, identify missing indexes, and refactor inefficient joins to improve response times.

Quick Start

Analyze the query plan for the following SQL statement: SELECT * FROM orders WHERE order_date > '2023-01-01';

Frequently Asked Questions about engineering-database-optimizer

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

FAQPage Schema
How do I optimize slow PostgreSQL queries using EXPLAIN ANALYZE?

To optimize slow PostgreSQL queries, use EXPLAIN ANALYZE to identify bottlenecks in the query plan. This Skill analyzes the execution output to refactor inefficient joins, implement missing indexes, and resolve N+1 data fetching problems.

What are the best indexing strategies for MySQL and PostgreSQL?

Effective indexing strategies for MySQL and PostgreSQL involve implementing B-tree, GiST, GIN, and partial indexes. This Skill provides guidance on selecting and applying these index types to schema designs to prevent performance bottlenecks.

How do I resolve N+1 query problems in Supabase and PlanetScale?

Resolving N+1 query problems in Supabase and PlanetScale requires refactoring code and queries to avoid inefficient data fetching. This Skill offers techniques to restructure data access patterns and optimize query execution.

Can I perform safe database migrations with minimal downtime?

Yes, you can perform safe database migrations with minimal downtime and rollback capabilities. This Skill outlines strategies for executing schema changes securely while maintaining database availability and managing connection pooling.

Does this database optimization approach work with Supabase and PlanetScale?

Yes, this database optimization approach works with Supabase, PlanetScale, PostgreSQL, and MySQL. It focuses on scalable schema design, query plan analysis, and indexing strategies tailored to these platforms.

Why is my database experiencing performance bottlenecks under heavy loads?

Database performance bottlenecks under heavy loads often stem from poor schema design, missing indexes, or N+1 queries. This Skill analyzes query plans and connection pooling to identify and fix these specific scalability issues.