Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1272

FindFluent.SizeAsync()

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.0
    • Feature Request
    • None

    Description

      I wonder if there are any plans to include a SizeAsync (
      http://docs.mongodb.org/manual/reference/method/cursor.size/#cursor.size)?
      I'm not sure of the wire protocol, but it seems that it might be useful at least to imitate "exists" queries (Limit(-1).SizeAsync() instead of CountAsync() when you are only interested if there is at least one document).

      Attachments

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            onyxmaster Aristarkh Zagorodnikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: