Answer the question
In order to leave comments, you need to log in
Hibernate Fetching Eager vs Lazy, how does it work?
Hello everyone, at the moment I'm dealing with the framework and stumbled upon the topic Fetching Types, the process of how data from the database is obtained and kept in memory with these approaches cannot fit in my head.
Who can give a detailed explanation of this or a good resource on the Internet with code?
What is the EAGER approach used for? What is Lazi for? The more specific and detailed the answer, the better! THX!
Answer the question
In order to leave comments, you need to log in
It's simple
If there are two dependent tables, then when selecting from one of them
with eager, the data from the selected table will be pulled up and from the
dependent table with lazy, the dependent table will be pulled up only when it is actually accessed in the code
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question