Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-196

there should be a decent way to route reads to slaves using pymongo and replica set

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      pymongo 1.9

      pymongo has master_slave connection implemented. But it won't work
      with replica set automatically, developers have to write their own
      codes to detect a master from connection module. The only way pymongo
      support to connect to replica set is to use connection, writes and
      reads all goes to master

      the way I thought is to make a master_slave connection instance over
      the existed connection instance and get enough info from it

      It seems php driver already supported this feature in its description

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            dawn davyzhang
            Votes:
            19 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: