Skip to content

Instantly share code, notes, and snippets.

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

  • Save danared/33a968a5c5af9d88dae4 to your computer and use it in GitHub Desktop.

Select an option

Save danared/33a968a5c5af9d88dae4 to your computer and use it in GitHub Desktop.
>>> def thread_fn():
... db.read_preference = ReadPreference.SECONDARY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment