Spring Data JPA Deep Review

•
15
•

Analyzes Java projects to detect N+1 queries, optimize fetch strategies, and improve Spring Data JPA repository performance and design.

This skill transforms Claude into a Spring Data JPA specialist capable of performing deep architectural and performance audits on your Java persistence layer. It automatically identifies critical performance bottlenecks like N+1 query problems, inefficient EAGER fetch strategies, and improper transaction management across Service and Repository layers. By scanning your entities and JPQL/native queries, it provides actionable code fixes, suggests modern optimizations like Record projections for Java 16+, and ensures your entity design follows best practices for both Spring Boot 2.x (javax) and 3.x (jakarta) environments.

主要功能

01Transactional boundary verification for service layer integrity and read-only optimizations
02Automated N+1 query detection with specific @EntityGraph and JOIN FETCH code fixes
03Comprehensive fetch strategy auditing to eliminate performance-killing EAGER loading
04Best practice reviews for Pagination, Specifications, and Entity relationship mapping
0515 GitHub stars
06Projection analysis to optimize data retrieval using Interfaces or Java Records

使用场景

01Performing pre-production code reviews to identify hidden JPA performance bottlenecks and mapping errors
02Optimizing slow database queries and reducing overhead in existing Spring Boot applications
03Refactoring legacy Java persistence code to modern Spring Data JPA standards and Jakarta EE requirements