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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 7.2.0.rc1
    • Query
    • Minor Change

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              neil.shweky@mongodb.com Neil Shweky (Inactive)
              oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: