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

Use slaves for 'count()', 'distinct()' and 'group()'

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1
    • Affects Version/s: 1.11
    • Component/s: None
    • None

      As of version 1.11, calls to Cursor.count(), Cursor.distinct() and Collection.group() are always sent to the master node in a replicated environment, even when using MasterSlaveConnection.

      Sice they are read-only operations, it should be OK to do them on any slave server instead.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            carletes Carlos Valiente
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: