reviewing-index-strategy
OfficialOptimize PostgreSQL index performance
Software Engineering#query optimization#indexing#postgresql#sql#performance tuning#database performance
Authormusher-dev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the complex challenge of optimizing PostgreSQL index strategies, ensuring efficient database performance by identifying and rectifying issues like unused indexes, write amplification, and inefficient query plans.
Core Features & Use Cases
- Unused Index Detection: Identifies indexes that are not being utilized, allowing for their safe removal to save storage and reduce write overhead.
- Write Amplification Analysis: Diagnoses performance bottlenecks caused by excessive index maintenance during updates (MVCC).
- HOT Update Optimization: Guides on configuring indexes and table settings (like
fillfactor) to maximize Heap-Only Tuple updates, reducing write costs. - Covering & Partial Indexes: Explains how to leverage
INCLUDEclauses andWHEREpredicates to create more efficient, targeted indexes. - Expression & Composite Indexes: Details on using expressions and ordering columns effectively in composite indexes.
- EXPLAIN ANALYZE Interpretation: Provides a framework for understanding query execution plans to pinpoint performance issues.
- N+1 Query Detection: Helps identify and resolve common ORM-related performance anti-patterns.
Quick Start
Analyze the index strategy for the 'orders' table by running an audit of its current indexes and identifying potential optimizations.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: reviewing-index-strategy Download link: https://github.com/musher-dev/bundles/archive/main.zip#reviewing-index-strategy Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.