跳至主要内容

Dev's Ranting - Hibernate batch processing

Recently I have been working on a performance issue of a small application. It utilizes Hibernate to delete a lot of entities from database. Unfortunately the application died throwing a `OutOfMemoryError`. After discussing with my colleagues and reading some posts about how Hibernate works in batch mode, it appears to me that Hibernate's batch mode (`order_inserts` and/or `order_updates`) may played some role in this issue. Ref: * [Why is Hibernate batching / order_inserts / order_updates disabled by default](https://stackoverflow.com/questions/27755461/why-is-hibernate-batching-order-inserts-order-updates-disabled-by-default) * [Hibernate Batch Processing - Why you may not be using it. (Even if you think you are](https://abramsm.wordpress.com/2008/04/23/hibernate-batch-processing-why-you-may-not-be-using-it-even-if-you-think-you-are/)

评论