为什么 spring 批处理的 MongoItemWriter 不使用 org.springframework.data.mongodb.core.BulkOperations?

Why does spring batch's MongoItemWriter not use org.springframework.data.mongodb.core.BulkOperations?

我认为它会表现得更好。有什么保证我会失去使用它吗?

我看不出为什么它不能使用批量操作。如果你愿意,请随意打开一个问题并贡献改进。

Is there some guarantee I'd lose using that?

不,你应该得到相同的结果。