[CDRIVER-288] Support parallelCollectionScan command Created: 03/Feb/14  Updated: 24/Apr/17  Resolved: 15/Jul/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Barrie Segal Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-138 Support parallelCollectionScan command Closed
Duplicate
duplicates CDRIVER-330 add parallelScan helper Closed
Related
related to PHPC-62 Implement Cursor class Closed

 Comments   
Comment by Christian Hergert [ 13/Feb/14 ]

This one is going to be pretty difficult with the C driver API.

I presume the target use case for this (and I may be wrong), is that you would get an array of mongoc_cursor_t structures back each ready to go to iterate on a different cursor. And then pass each to a thread to iterate the cursors.

This doesn't work in the C driver because they would share a mongoc_client_t, which is not thread safe (and no intention of changing that).

So any sort of helper here would likely just allow for the caller to create a new client (or retrieve one from the pool), and create a cursor for it manually.

Generated at Wed Feb 07 21:09:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.