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

Linq projection execute on client side

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Works as Designed
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.2.4
    • Linq
    • Windows 8.1

    Description

      Hello.
      I use mongocharpdriver with legacy driver.
      Code like this:

      var result = objectsCollection.AsQueryable().Select(o => o.Id).ToList();
      

      was executed very slowly because it is running on client side and deserialising all objects in collection.
      Why linq query like this do not executed on server side?

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            IlyaK Ilya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: