I was reading ProSpring 3 book that explains how to use together in Spring and Hibernate. But, I came to the statement that 'You can bring the Union anxiously' My question is:
In hibernate actually means and how it is affected > Curious embrace means that when the parent unit is seen from the database, then all related entities are seen at the same time Is there. Dull helplessness (opposite) means only the fields of the parents are seen themselves. The related institutions are populated with a proxy which they will see from the database / when they are referred. Then the primary difference in query execution occurs when searching for related entities, with curious anxiety, this is always the same time when parents are loaded, while attracting lazy After it will be later (and possibly never). The sluggish load seems like a clear winner on-demand behavior, but some precautions are taken into account. First of all, it may be very difficult to lose your connections to find out. Normal unit looks like an object, in fact it has an embedded database connection which can be applied by "normal" recipient methods (or worse by these methods of customers) at any point. When you can close the connection or return it to the pool, it is virtually impossible to know. Similarly, this behavior can cause confusion when "simple" objects do not set their fields during debugging or SQL Exceptions are thrown when you are running on a collection that is "simple" Additionally, if the overall bodies are loaded separately from the original unit, then the overall performance is likely to worsen Is. There are overheads in addition to another SQL Round-trip, but more importantly, the database can not reuse the existing lookup in connecting, etc. In situations where the affiliates are always used, the eager emission is likely to be fast and
No comments:
Post a Comment