-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: libmongoc, Performance
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.
- is related to
-
CDRIVER-2228 All writes retryable support
- Closed
-
CDRIVER-2379 Optimize txnNumber rewriting
- Closed
-
CDRIVER-2386 Refactor findAndModify helper to use write_command_with_opts
- Closed