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

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept