Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-36436

Deprecate the shell count() function

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying, Shell
    • None
    • Query Optimization

    Description

      The drivers have deprecated the count() function and added two new document count functions, countDocuments() and estimatedDocumentCount().

      One option is to remove the count() function and then replace uses of count() with countDocuments(). I am not sure how we would communicate with users that we have deprecated this function, maybe through our regular documentation or printing a helpful error message?

      Since we haven't really deleted code from the shell in such a way, we can also have count() call estimatedDocumentCount() and just update the behavior description.

      Attachments

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: