[JAVA-2112] Avoid double decoding of command responses Created: 09/Feb/16  Updated: 16/Feb/16  Resolved: 13/Feb/16

Status: Closed
Project: Java Driver
Component/s: Command Operations, Performance
Affects Version/s: 3.0.0
Fix Version/s: 3.2.2

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by JAVA-2110 Performance regression between 2.13 a... Closed

 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.



 Comments   
Comment by Jeffrey Yemin [ 16/Feb/16 ]

Closed for 3.2.2 release

Comment by Githook User [ 13/Feb/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2112: Eliminate double decoding when checking for command failure
Branch: 3.2.x
https://github.com/mongodb/mongo-java-driver/commit/35f52e944f1c8a7a8458185006453b0b2b4428f1

Comment by Githook User [ 12/Feb/16 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-2112: Eliminate double decoding when checking for command failure
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/49e991a5b8bdc3ad84d1581016a4a0c35d9df176

Generated at Thu Feb 08 08:56:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.