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

Optimize access for retryWrites URI option

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: libmongoc
    • Labels:

      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.

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

              Created:
              Updated: