New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow MongoDB ReadPreference configuration #156
Comments
@fra967 can you please confirm this covers what you require for |
We will probably want to set it to secondaryPreferred in order to fall back to the primary. |
@fra967 I believe that happens internally, as seen by this getter on the Db class:
|
cool, so I guess we just need to test it :) |
@fra967 do you have a preference for the default setting? or should |
yes @jimlambie please let's use secondaryPreferred as default value |
Rolled into #171 |
Default to “secondaryPreferred” Close #156
Default to “secondaryPreferred” Close #156
API needs a way to configure the ReadPreference when connecting to a replica set, as per this page in the docs: https://docs.mongodb.com/v3.0/core/read-preference/
The text was updated successfully, but these errors were encountered: