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

dbcursor.count() should update based on limit() and skip()

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None

      After retrieving a cursor from a query, calling count() on it always returns the total number of matching records, even after calling limit() or skip() on it. It would be nice if count() was updated to reflect the number of matching records after any cursor manipulation with limit() and skip().

      This would ideally be a universal change for the various drivers as well to maintain consistent behavior, but I did not create issues specifically for each of them. Perhaps if this is accepted, that kind of change could be considered.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            liamstask Liam Staskawicz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: