optimizing-query-selection
CommunityLimit fields and optimize relations to prevent N+1.
Authordjankies
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill teaches selecting only required fields, using include/select, and avoiding N+1 queries in Prisma.
Core Features & Use Cases
- Selective Loading: Use select to fetch only needed fields.
- Relation Management: Properly load relations with include/select and _count.
- Pagination & Performance: Improve performance by minimizing data transfer.
Quick Start
Replace broad queries with targeted select/include patterns and add _count where appropriate.
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: optimizing-query-selection Download link: https://github.com/djankies/claude-configs/archive/main.zip#optimizing-query-selection 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.