[GODRIVER-984] Add support for legacy find, getMore, and killCursors to driver.Operation Created: 19/Apr/19 Updated: 28/Oct/23 Resolved: 14/May/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | Core API |
| Affects Version/s: | None |
| Fix Version/s: | 1.1.0 |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Divjot Arora (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | Core API |
| Description |
|
In the original design, the FindOperation, GetMoreOperation, and KillCursorsOperation each handled legacy versions of themselves directly. With the switch to driver.Operation those types won't know the wire version before calling driver.Operation.Execute so driver.Operation.Execute must handle these legacy conversions itself. There is a small overhead of transforming the command into a bsoncore.Document and then building a wire message directly. If this is a performance issue we can revisit the design of this later. The required signaling type, LegacyOperationKind, and the necessary constants will be created during |
| Comments |
| Comment by Githook User [ 14/May/19 ] |
|
Author: {'email': 'divjot.arora@10gen.com', 'name': 'Divjot Arora', 'username': 'divjotarora'}Message: Support legacy find, getMore, and killCursors in driver.Operation Change-Id: I174e8e13694dac526cfab632be92b092a16a172f |
| Comment by Divjot Arora (Inactive) [ 09/May/19 ] |
|
CR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/453887 |