]
Adam Warski resolved HHH-5686.
------------------------------
Assignee: Adam Warski
Resolution: Fixed
Fix Version/s: 4.0.0.Alpha1
3.6.1
Collections should be loaded by default using "lazy collection
fetch" instead of "extra lazy collection" fetch
--------------------------------------------------------------------------------------------------------------
Key: HHH-5686
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5686
Project: Hibernate Core
Issue Type: Bug
Components: envers
Affects Versions: 3.6.0
Environment: Works fine with in-memory database like H2 but for MySQL5 generates
too many queries.
Reporter: Srinivas Nandina
Assignee: Adam Warski
Priority: Minor
Fix For: 3.6.1, 4.0.0.Alpha1
If an entity has a collection (either entities or components), then loading the
collection from audit tables one query is issued per element of collection rather than
issuing one query for the whole collection. Because of this while loading huge object
graphs from audit tables, large number of queries are issued and taking long time to load
the data.
Default option to load collections should be changed from "extra lazy collection
fetch" to "lazy collection fetch".
More details can be found at the discussion in the forum:
http://community.jboss.org/message/567086
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: