Query performance

From saifoelloh/golang-best-practices-skill · View interactive version

Query performance is an AI agent skill from the GitHub repository saifoelloh/golang-best-practices-skill. GORM + PostgreSQL query performance review. Use when optimizing slow queries, designing indexes, analyzing N+1 patterns, or configuring connection pools. Trigger on "slow", "optimize", "index", "EXPLAIN", "N+1", or performance degradation.

How to use this skill

Skill file

Query Performance

Expert-level performance review for GORM + PostgreSQL queries. Detects N+1 patterns, missing indexes, connection pool misconfigurations, and memory-inefficient data fetching.

When to Apply

Use this skill when:

Rule Categories

| Priority | Count | Focus |

|---|---|---|

| Critical | 2 | N+1 queries, unindexed foreign keys |

| High | 3 | EXPLAIN ANALYZE, connection pool, batch processing |

| Medium | 2 | COUNT vs len(), partial indexes |

Rules Covered (7 total)

Critical Issues (2)

High-Impact Patterns (3)

Medium Improvements (2)

Trigger Phrases

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.