Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4898

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

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

      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@mongodb.com Neil Shweky (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: