[CSHARP-1027] Is there a way to set the timeout on a mongo cursor? Created: 06/Aug/14 Updated: 05/Apr/19 Resolved: 22/Sep/14 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Christian Martinsen [X] | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Is there a way to set the timeout on a mongo cursor? I'm aware of the following function, but would like some more granularity between 10 minutes and off. Thanks, |
| Comments |
| Comment by Robert Stam [ 22/Sep/14 ] |
|
The only options for cursor timeout are either NO timeout or 10 minutes. The server doesn't provide any way to set a different value, so none of the drivers is able to either. |
| Comment by Craig Wilson [ 07/Aug/14 ] |
|
Hi Christian, Normally we reserve Jira for feature requests or bug reports as opposed to questions. Stackoverflow our mongodb user group are great places to ask questions. To answer it, no, there is no granularity in that regard, as it is a server setting. However, if you are using server 2.6, then you can use SetMaxTime(...) to timeout the query itself. Not sure exactly what you are after. Craig |