[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: |
|
||||||||
| 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: |
| 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: |