Can't use read preference when count documents.

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • 2.2.2
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      MongoDB version v2.6.11,
      mongoid '5.0.2'
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I set read preference :nearest in mongo default client.
      It works well at CRUD methods, but when I use count method from mongoid, always connect to primary node.

            Assignee:
            Unassigned
            Reporter:
            Yuichi Sano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: