[hibernate-issues] [Hibernate-JIRA] Created: (HHH-1990) Query cache should be disabled for batch updates

Stefan Gybas (JIRA) noreply at atlassian.com
Wed Aug 9 11:26:18 EDT 2006


Query cache should be disabled for batch updates
------------------------------------------------

         Key: HHH-1990
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1990
     Project: Hibernate3
        Type: Improvement

  Components: documentation  
    Versions: 3.1.3    
    Reporter: Stefan Gybas
    Priority: Minor


Section 13.2 (batch updates):

In the batch update example in section 13.2 the second level cache is disabled using setCacheMode(CacheMode.IGNORE) but the query cache (hibernate.cache.use_query_cache) also needs to be disabled for batch updates to work for a large amount of entities. There are still references to dirty entities even after session.clear() is called when the query cache is enabled. See http://forum.hibernate.org/viewtopic.php?t=944918.

Please mention in the reference documentation that the query cache needs to be disabled or OutOfMemoryErrors are likely to happen. You can also mention that query.iterate() can be used instead of query.scoll() since Java devlopers might be more familiar with Itarator than with ScrollableResults.


-- 
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