Skip to content

Use BulkOperations API in MongoItemWriter #3713

Closed
@fmbenhassine

Description

@fmbenhassine

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions