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

prefix-lile fields like Name and NameOfPet ruin projection

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.14.0
    • None
    • Serialization
    • None
    • Minor Change

    Description

      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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: