linq-optimization-patterns
CommunityBoost EF Core query performance, eliminate N+1.
Software Engineering#Performance#LINQ#EF Core#Query Optimization#Eager Loading#Database Access#N+1 Problem
Authorthapaliyabikendra
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you optimize LINQ queries and EF Core data access, eliminating common performance bottlenecks like N+1 queries and inefficient data loading. It ensures your ABP applications are fast, responsive, and minimize database load.
Core Features & Use Cases
- N+1 Query Prevention: Provides solutions using eager loading (
Include), projections (Select), and batch loading to drastically reduce database round trips. - Efficient Data Loading: Guides on using
AsNoTrackingfor read-only scenarios andAsSplitQueryto prevent Cartesian explosion with multiple collections. - Optimized Pagination & Filtering: Demonstrates cursor-based and optimized offset pagination, along with ABP's
WhereIfextension for dynamic filtering. - Use Case: A backend developer identifies a slow API endpoint caused by N+1 queries. Using this skill, they refactor the data access layer to use projections and eager loading, reducing the endpoint's response time from seconds to milliseconds.
Quick Start
Refactor a LINQ query that fetches a list of 'Doctors' and their 'Appointments' to prevent N+1 issues using eager loading with Include.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: linq-optimization-patterns Download link: https://github.com/thapaliyabikendra/ai-artifacts/archive/main.zip#linq-optimization-patterns 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.