[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 GODRIVER-978.



 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

GODRIVER-984

Change-Id: I174e8e13694dac526cfab632be92b092a16a172f
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/b87fca2a0903c74e95f4875382e5ae1773c3e032

Comment by Divjot Arora (Inactive) [ 09/May/19 ]

CR: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/453887

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