Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2112

Avoid double decoding of command responses

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.2.2
    • Labels:
      None

      Description

      When decoding commands, the 3.x driver double decodes the reply document. The first time it decodes into a BsonDocument just to check for command failure. The second time it decodes into an instance of type T, which is unknown at compile time and can't be used to check for failure.

      This has become a significant performance regression when connected to a 3.2 server, since as of 3.2 the driver uses the find and getMore commands for all queries and all get-more messages.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jeff.yemin Jeffrey Yemin
              Reporter:
              jeff.yemin Jeffrey Yemin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: