-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Atlas Streams
Setting the batch size of the watch to 0 will allow the server to return immediately and avoid having the operation run on the cluster even if the client crashes or abandons the cursor.
mongocxx::options::change_stream options;
options.batch_size(0); // Send batchSize:0 to aggregate to have aggregate return immediately.
mongocxx::change_stream stream = collection.watch(options);
- depends on
-
CDRIVER-5925 Apply batchSize:0 to the aggregate for a change stream
-
- Ready for Work
-