Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4363

Improved Bulk Write API

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.28.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Hide

      DRIVERS-716:
      Summary of necessary driver changes

      • Implement the new bulk write API and tests defined in the specification.

      Commits for syncing spec/prose tests

      • Sync spec tests and implement prose tests from this commit.
        • 2024-08-28 include skips on serverless from 0984b09
        • 2024-08-29 include missing skip on serverless from e9f02f3
      • Sync the unacknowledged-client-bulkWrite command monitoring test files from this commit. The outdated version of this test in the commit from the previous bullet has a potential race.
      • See DRIVERS-2993 for a fix to unacknowledged write handling.

      Reference implementations

      Show
      DRIVERS-716 : Summary of necessary driver changes Implement the new bulk write API and tests defined in the specification . Commits for syncing spec/prose tests Sync spec tests and implement prose tests from this commit . 2024-08-28 include skips on serverless from  0984b09 2024-08-29 include missing skip on serverless from e9f02f3 Sync the unacknowledged-client-bulkWrite command monitoring test files from this commit . The outdated version of this test in the commit from the previous bullet has a potential race. See DRIVERS-2993 for a fix to unacknowledged write handling. Reference implementations Rust C
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      Server 8.0 introduces a new bulkWrite command. It is expected to require less network round trips than existing driver bulk write API.

      Suggest updating the Bulk Write Operations to suggest users use the new mongoc_bulkwrite_t if using server 8.0+.

      Suggest adding this blurb comparing the existing mongoc_bulk_operation_t and the new mongoc_bulkwrite_t. See it rendered here.

      2. Would you like the user to see examples of the syntax and/or executable code and its output?

      Yes. Here is example code.

      3. Which versions of the driver/connector does this apply to?

      C driver 1.28.0 (unreleased at time of writing)

       

      Show
      1. What would you like to communicate to the user about this feature? Server 8.0 introduces a new bulkWrite command. It is expected to require less network round trips than existing driver bulk write API. Suggest updating the Bulk Write Operations to suggest users use the new mongoc_bulkwrite_t if using server 8.0+. Suggest adding this blurb comparing the existing mongoc_bulk_operation_t and the new mongoc_bulkwrite_t . See it rendered here . 2. Would you like the user to see examples of the syntax and/or executable code and its output? Yes. Here is example code . 3. Which versions of the driver/connector does this apply to? C driver 1.28.0 (unreleased at time of writing)  

      This ticket was split from DRIVERS-716, please see that ticket for a detailed description.

            Assignee:
            kevin.albertson@mongodb.com Kevin Albertson
            Reporter:
            dbeng-pm-bot PM Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: