Hello,
I want to save large amount of data in one transaction (large blobs) and at the same time to have enabled second level cache on the server. I have enabled the second level cache:
Code:
<property name="hibernate.cache.use_query_cache">true</property>
and I try to save data with piece of code similar to the code that is as an example in batch processing page in the manual doing session.flush() and session.clear() with CacheMode.IGNORE and FlushMode.MANUAL. The problem is that Hibernate consumes memory anyway (ActionQueue.executions).
Is there a way to minimize the memory consumption?
Regards,
Jakub