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.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 2.17.0
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: