gorm-preload
CommunityEagerly load related data, eliminate N+1 queries
Authorliurida
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Preloading associations in GORM prevents the N+1 query problem by loading related records in bulk, reducing database round‑trips and improving performance.
Core Features & Use Cases
- Bulk association loading: Use Preload or clause.Associations to fetch related data with minimal queries.
- Conditional and nested preloading: Filter associated records and preload deep relationships using dot notation.
- Combination with Joins: Switch to Joins for one‑to‑one relationships when filtering on parent records.
Quick Start
Ask the assistant to preload a user's orders and their items for a given user ID.
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: gorm-preload Download link: https://github.com/liurida/gorm-development-skill/archive/main.zip#gorm-preload 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 471,000+ vetted skills library on demand.