Spring Batch - Use bulk writes in MongoItemWriter

Use bulk writes in MongoItemWriter

Up until now, the MongoItemWriter used MongoOperations.save() in a for loop to save items to the database. In this release, we replaced this mechanism with a single call to BulkOperations. With this change, the MongotItemWriter is 25x faster than the previous version, according to benchmark mongo-item-writer-benchmark.

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation