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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 1.11
    • 2.1
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: