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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.1
    • Affects Version/s: 1.11
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Hackett
            Reporter:
            Carlos Valiente
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: