Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 13, 2025 · Backend Development

Mastering @EntityGraph in Spring Boot 3: Eliminate N+1 Queries Efficiently

This article explains the classic N+1 query issue in Spring Data JPA, demonstrates how JPQL JOIN FETCH and the @EntityGraph annotation can declaratively load associations, and provides advanced examples—including named entity graphs and combining @EntityGraph with custom @Query—to improve performance and code maintainability.

EntityGraphN+1 problemPerformance
0 likes · 8 min read
Mastering @EntityGraph in Spring Boot 3: Eliminate N+1 Queries Efficiently
Taobao Frontend Technology
Taobao Frontend Technology
Sep 28, 2021 · Backend Development

How DataLoader Solves the GraphQL N+1 Problem: Deep Dive into Batch & Cache Mechanics

This article explains the GraphQL N+1 performance issue, demonstrates how DataLoader batches and caches database calls to eliminate redundant queries, walks through its core TypeScript implementation—including batch scheduling, cache handling, and load methods—while providing practical examples and integration tips for real‑world GraphQL servers.

BatchingCachingDataLoader
0 likes · 28 min read
How DataLoader Solves the GraphQL N+1 Problem: Deep Dive into Batch & Cache Mechanics
ITPUB
ITPUB
Sep 24, 2020 · Backend Development

Designing GraphQL for Microservices: Key Challenges, Solutions, and Best Practices

This article explains what GraphQL is, how its type system and Relay standard work, the N+1 problem, and presents three architectural approaches—prefixing, schema stitching, and RPC composition—for integrating GraphQL into microservices, along with authentication, authorization, and routing considerations.

AuthenticationAuthorizationGraphQL
0 likes · 34 min read
Designing GraphQL for Microservices: Key Challenges, Solutions, and Best Practices