Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Batch insert update

Devender Yadav edited this page · 20 revisions
Clone this wiki locally

To allow end-user perform batch insert/update is an important feature keeping NOSQL and performance in mind.

Feature available:

Available for Cassandra/MongoDB/HBase from 2.1 onwards.

How to use:

  • In case want to know how to use Kundera, please refer.

  • Persistence.xml: Modify persistence.xml to add a property:

<property name="kundera.batch.size" value="5000" />

  • You can configure value as required 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.

Sample Examples:

Home

Something went wrong with that request. Please try again.