Closed
Description
As of v4.2, the MongoItemWriter
uses a for loop to save items through the mongo template. Using org.springframework.data.mongodb.core.BulkOperations
should give better performance.
It should be noted that template.save
is an upsert operation, so we need to use an equivalent operation in the BulkOperations
API.
Reference: https://stackoverflow.com/questions/61644406