[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5498) Extend AuditReader interface to support batch queries

Erik-Berndt Scheper (JIRA) noreply at atlassian.com
Tue Aug 24 08:54:41 EDT 2010


Extend AuditReader interface to support batch queries
-----------------------------------------------------

                 Key: HHH-5498
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5498
             Project: Hibernate Core
          Issue Type: Improvement
          Components: envers
            Reporter: Erik-Berndt Scheper


Currently the Envers AuditReader interface only supports retrieving single instances of:

* Revision-entities, using:
** {{findRevision(Class<T> revisionEntityClass, Number revision)}}

* Audited entities, using: 
** {{T find(Class<T> cls, Object primaryKey, Number revision)}}


For a moderately sized object graph, this leads to an extremely large amount of queries sent to the database if one needs to retrieve the history of a graph. This severely degrades the performance. Batching these queries improves performance significantly (in our case: easily 5 to 20-fold).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list