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

Any and AnyAsync do not have IFindFluent extensions to project and limit results.

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.17.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      First, Single, and all their variants have extension methods on IFindFluent that internally call Limit. This improves performance of some queries and has no impact on the rest. Any and AnyAsync do not have similar extension methods. Because of that I have to add a projection and limit in my client code. Otherwise I would see performance impacts. It would be better if this functionality was built in. Other people using the driver wouldn't necessarily know to do this unless they look at the source code.

            Assignee:
            boris.dogadov@mongodb.com Boris Dogadov
            Reporter:
            mhdejong@umich.edu Matthew DeJonge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: