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

Deprecate the shell count() function

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying, Shell
    • Labels:
      None
    • Query Optimization

      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.

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: