ecto:n1-check
CommunityEliminate N+1 queries in Ecto.
Authoroliver-kriska
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill identifies and helps you fix the inefficient "N+1 query" anti-pattern in Ecto, which significantly degrades application performance by making too many database calls.
Core Features & Use Cases
- N+1 Detection: Automatically scans your Ecto code for common N+1 query patterns.
- Preload Guidance: Provides clear rules and examples for using Ecto's
preloadfunction correctly. - Use Case: When reviewing database access in your Phoenix application, run this Skill to pinpoint any areas where multiple queries are being executed unnecessarily, allowing you to optimize them with eager loading.
Quick Start
Run the provided grep commands to find potential N+1 query patterns in your lib directory.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: ecto:n1-check Download link: https://github.com/oliver-kriska/claude-elixir-phoenix/archive/main.zip#ecto-n1-check 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.