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

Optimize access for retryWrites URI option

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • libmongoc

    Description

      In the initial implementation of retryable writes, mongoc-cmd.c uses
      mongoc_uri_get_option_as_bool() to check the value of the retryWrites option. This uses BSON iteration and may occur on every write command that allows a transaction number for the given wire version. We should look into making this more efficient. If the URI will never change after client construction, perhaps we can read the option once at the time a client is initialized.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: