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

Create Linq + MongoCursor query generation

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.4.2
    • Component/s: None
    • Labels:
      None

      Problem:
      1) I create IMongoQuery myQuery = some stuff.
      2) I create IQueryable expresion = myCollection.Find(myQuery).AsQueryable
      3) Apply some additional condition: expresion.Where(x => x.SomeProperty=someValue)
      4) Execute it.

      Execution:
      1) MongoCursor executed myQuery part.
      2) Via Linq-to-Object "Where" condition applied to MongoCursor result in memory
      So I got two queries - first on the server and the second in memory

      Expected:
      All expression must be executed like a single query on the server side.

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

              Created:
              Updated:
              Resolved: