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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.11
    • Fix Version/s: 2.1
    • Component/s: None
    • Labels:
      None
    • # Replies:
      5
    • Last comment by Customer:
      true

      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

            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                7 years, 12 weeks, 4 days ago
                Date of 1st Reply: