-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for running MongoDB queries on secondary in replicaset …
…mode (#1424) * - Added support to specify read preference when query a replicaset database (for example, secondaryPreferred - to try and read data from secondary before primary). - Removed old code that used MongoClientReplicaSet as it is now just a reference to MongoClient - Fixed a documentation type :-) * Moving to PyMongo 3.3.1 which also supports MongoDB 3.2 * Changed the readPreference config to use an enum * Pass readPreference to MongoClient * primaryPreferred is now the default
- Loading branch information
Showing
1 changed file
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters