-
Type: Task
-
Resolution: Works as Designed
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Context
The following Collection methods are synchronous in Motor and return a "Latent cursor". We should decide whether to do the same in PyMongo Async to better align the APIs, or else call these out in the migration guide. The reason to make them async is that an aggregate command with an $out stage performs I/O.
- aggregate
- aggregate_raw_batches
- watch
- list_indexes
- list_search_indexes
Definition of done
Decide on a path and either implement or add to migration guide.
Pitfalls
We want to balance migration effort and a correct API.