Details
-
Bug
-
Resolution: Won't Fix
-
Minor - P4
-
None
-
2.8.0, 2.9.0, 2.9.1
-
None
-
Major Change
Description
Similar to CSHARP-254.
Mongo does not limit the number of document to 2^32, so DBCollection has it right. DBCursor defers to the same server command, so there's no good reason to return something different here beyond not breaking code written against DBCursor.count. Currently, count on a cursor over a very large collection will truncate, which isn't great.
Adding this detail as a separate issue so that the fix can be included in some release where forcing some client-app cleanup is ok.