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

prefix-lile fields like Name and NameOfPet ruin projection

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.0
    • Affects Version/s: None
    • Component/s: Serialization
    • Labels:
      None
    • Minor Change

      In case projection looks like
      (item => new Result { Connection = item.Connection, ConnectionType = item.ConnectionType} )
      the method in question returns only one field - Connection
      It results in FindProjectionTranslator.VisitField not finding ConnectionType in fields list and it mistakenly sets _fullDocument = true, wich results in using ProjectingDeserializer that deserializes whole (very large) document and slows our system like x10 times.

      The fix is proposed here (in April)
      https://github.com/mongodb/mongo-csharp-driver/pull/323

            Assignee:
            james.kovacs@mongodb.com James Kovacs
            Reporter:
            betiniv Igor Betin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: