I have to update few millions of records in Mongo collection using my C# .Net Core Console app as one time activity. It works just fine but it time-out after updating around 200 records so my DBA asked me to implement the noCursorTimeout for that activity. But I don’t know how to use noCursorTimeout in C# driver. Any help please.
Do you mind posting the code snippet of how you are updating those documents?
This will help me determine the best solution for your issue, which may not be related to the NoCursorTimeout option at all.