Add an estimated_count method to model classes, change count to use count_documents

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 7.2.0.rc1
    • Affects Version/s: None
    • Component/s: Query
    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      Note that the zero-argument count_documents invocation was only added to the driver recently, Mongoid should provide the empty hash explicitly as the argument.

      If Mongoid currently supports driver versions that don't implement count_documents, the respective invocation needs to fall back to count.

            Assignee:
            Neil Shweky (Inactive)
            Reporter:
            Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: