Skip to content

Conversation

vbabanin
Copy link
Member

@vbabanin vbabanin commented Mar 25, 2025

Summary

Adds benchmarks for MongoCollection.bulkWrite() and MongoClient.bulkWrite() to evaluate performance differences between the two APIs.

Motivation
Client-side construction of bulk write requests may impact overall performance. Benchmarking helps measure:

  • The effect of reduced round trips in MongoClient.bulkWrite() for mixed operations (insert + update).
  • Throughput differences for insert-only operations, where round trips are similar.

Specification: link

JAVA-5545

@vbabanin vbabanin self-assigned this Mar 25, 2025
@vbabanin vbabanin marked this pull request as ready for review March 27, 2025 05:16
@vbabanin vbabanin requested review from a team and NathanQingyangXu and removed request for a team March 27, 2025 05:16
JAVA-5545
Copy link
Member Author

@vbabanin vbabanin Mar 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stIncMale mentioned that "Perf test setups are different in mixed bulk writes".

@vbabanin vbabanin merged commit e1eb156 into mongodb:main Mar 28, 2025
58 of 61 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants