[GODRIVER-105] Support using UUID for collection namespace in find/getmore Created: 12/Oct/17  Updated: 31/Aug/20  Resolved: 17/Jul/20

Status: Closed
Project: Go Driver
Component/s: Command & Dispatch
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: David Golden Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: mgomirror
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Epic Link: Support Mongoreplay
Case:

 Description   

In MongoDB, clients will be able to send a collection UUID as the "namespace" of find/getMore commands. This is useful for low-level tools like mongorestore and mongomirror, so we need to ensure that the low-level operation API supports this mode.

Some options:

  • Add a 'UUID' option to the opts.namespace type.
  • Write UUID-specific versions of find/getMore. This might be more performant by avoiding the check for UUID in the 99.99999% of operations that won't use it.

We may want to consider if we want to allow yamgo Collection structs to be set up with a UUID or if we only want to support UUIDs with low-level operations.



 Comments   
Comment by David Golden [ 07/Aug/19 ]

N.B. I wonder if we can do this via RunCommandCursor rather than needing changes to Find.

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