Skip to content

Add the ability to specify collectionUUID with ClientBulkWrite ops#2399

Draft
FGasper wants to merge 1 commit into
mongodb:masterfrom
FGasper:add_clientbulkwrite_collectionuuid
Draft

Add the ability to specify collectionUUID with ClientBulkWrite ops#2399
FGasper wants to merge 1 commit into
mongodb:masterfrom
FGasper:add_clientbulkwrite_collectionuuid

Conversation

@FGasper
Copy link
Copy Markdown
Contributor

@FGasper FGasper commented May 22, 2026

Summary

This changeset adds an experimental ability to specify collectionUUID with each ClientBulkWrite op.

Background & Motivation

This is essential functionality for C2C replication.

@mongodb-drivers-pr-bot
Copy link
Copy Markdown
Contributor

🧪 Performance Results

Commit SHA: 6800469

The following benchmark tests for version 6a0fbb9ed2337500071585b6 had statistically significant changes (i.e., |z-score| > 1.96):

Benchmark Measurement % Change Patch Value Stable Region H-Score Z-Score
BenchmarkBSONFullDocumentEncoding ops_per_second_min 43.4814 4357.4124 Avg: 3036.9172
Med: 3049.4220
Stdev: 564.2166
0.7658 2.3404
BenchmarkBSONDeepDocumentDecoding ops_per_second_min 21.5674 2693.7986 Avg: 2215.8896
Med: 2243.9688
Stdev: 215.1625
0.7528 2.2212

For a comprehensive view of all microbenchmark results for this PR's commit, please check out the Evergreen perf task for this patch.

@mongodb-drivers-pr-bot
Copy link
Copy Markdown
Contributor

API Change Report

./v2/mongo

incompatible changes

ClientBulkWrite: old is comparable, new is not

compatible changes

ClientBulkWrite.Internal: added

./v2/x/mongo/driver/xoptions

compatible changes

SetInternalClientBulkWriteEntry: added

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.

1 participant