From the 2.1.3 doco:
Quote:
Set a maximum "depth" for the outer join fetch tree for single-ended associations (one-to-one, many-to-one). A 0 disables default outer join fetching.
Found in the forums, posted by Gavin:
Quote:
max_fetch_depth specifies the maximum depth we will ever fetch into the object graph. This can occasionally be slightly unpredictable. It certainly does not put a bound in the number of outer joins!
http://forum.hibernate.org/viewtopic.php?t=928842So, now I'm really confused.
Can someone please exaplain to me the difference between these two things:
"setting maximum depth of the outer joing fetch tree"
and
"putting a bound in the number of outer joins"
The FAQ says that setting max_fetch_depth to a "smaller value" can help solve the issue of
Quote:
"Hibernate generates too many outer joins"
.
Anyway, the original reason I started looking at this is that I wanted to know why the recommended max for this setting is 3?
Back when I thought I knew what this setting meant, it occurred to me that 3 is a pretty low number and I was wondering why the Hibernate team recommend it as the maximum we should use?
Also, what's the default? If I don't set the property at all, is it just unlimited?