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

Linq projection execute on client side

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.2.4
    • Component/s: LINQ
    • Environment:
      Windows 8.1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

      Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      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?

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

              Created:
              Updated:
              Resolved: