Created
April 3, 2015 20:21
-
-
Save danared/d260c3b902ef2c7009bb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
db = client.get_database("dbname", read_preference=ReadPreference.SECONDARY) | |
# Unblocks when a secondary is found. | |
db.collection.find_one() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment