Skip to content

Instantly share code, notes, and snippets.

@danared
Created April 8, 2015 17:40
Show Gist options
  • Select an option

  • Save danared/1c199de0ea1245d1ac3f to your computer and use it in GitHub Desktop.

Select an option

Save danared/1c199de0ea1245d1ac3f to your computer and use it in GitHub Desktop.
>>> def thread_fn():
... my_db = client.get_database(
... 'test',
... read_preference=ReadPreference.SECONDARY)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment