Fix N+1 Select Issues with Hibernate’s EntityGraphs

Published: 24 October 2024
on channel: Thorben Janssen
1,339
78

If you've used Hibernate for a while, I'm sure you know the N+1 SELECT issue. It's the most common performance problem and describes how Hibernate executes dozens or even hundreds of queries to fetch related entities.

In this video, I will show you how you can easily fix those issues using an EntityGraph.

An EntityGraph tells Hibernate which relationships it shall fetch from the database. Hibernate will then fetch your entity together with the defined set of relationships in just 1 query.

--------------------------------------------------------------------------------------
Learn everything you need to build fast and maintainable persistence layers! 👉🏻 https://thorben-janssen.com/join-pers...

--------------------------------------------------------------------------------------
I'm a freelance consultant and trainer helping Java developers create better persistence layers using Hibernate and Spring Data.
Get the best videos to grow your persistence skills and become your team's expert. Subscribe to not miss any videos.


Watch video Fix N+1 Select Issues with Hibernate’s EntityGraphs online without registration, duration hours minute second in high quality. This video was added by user Thorben Janssen 24 October 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,33 once and liked it 7 people.