Java jpa hibernate performance

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

Java jpa hibernate performance is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Use this skill when statically reviewing JPA/Hibernate data access for fetch-strategy correctness and reliability — N+1 exposure, JOIN FETCH vs @EntityGraph vs @BatchSize vs DTO projection, LazyInitializationException and open-in-view misuse, pagination combined with a collection fetch (cartesian pr

How to use this skill

Skill file

Java JPA/Hibernate Performance Review

Purpose

This skill statically reviews JPA/Hibernate data access for fetch-strategy correctness, query shape, and connection reliability. Data access is only sound if associations are fetched by explicit, access-shaped strategies rather than lazy-by-accident or eager-by-default, if pagination does not silently load a cartesian product into memory, if the request is not leaning on open-in-view to resolve lazy state in the view layer, and if the connection pool is sized from measured hold time rather than a round number. The review catches N+1 patterns, eager collections, pagination-with-fetch, MultipleBagFetchException risk, open-in-view misuse, and mis-sized HikariCP pools.

Trigger conditions

When not to use

Lean operating rules

References

Load these only when needed:

Response minimum

Return, at minimum:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.