forked from Impetus/kundera
-
Notifications
You must be signed in to change notification settings - Fork 0
Batch insert update
mevivs edited this page Sep 20, 2012
·
16 revisions
Allow developers to perform batch insert/update is an important feature keeping NOSQL and performance in mind.
- In case want to know how to use Kundera, please refer.
Persistence.xml:
Modifiy persistence.xml to add a property: <property name="kundera.batch.size" value="5000" />
** You can configure value as desired batch size.**>
Implicit flush: Based on configured value, Kundera will handle implicit flush upon reaching batch size value.
Explicit flush:
You can flush explicitly, simply by invoking entitymanger.flush()
method.