[CSHARP-2568] DeleteOptions for DeleteMany Created: 01/Apr/19 Updated: 29/Apr/19 Resolved: 29/Apr/19 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Feature Request, Write Operations |
| Affects Version/s: | 2.7.0 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Mitereiter Balazs Zoltan | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
We are trying to delete approx. 10 million documents with DeleteMany filtered trough 1 indexed field and we get socket timeout. It would be nice if we could set MaxTime like by Find with the FindOptions. |
| Comments |
| Comment by Jeffrey Yemin [ 01/Apr/19 ] |
|
The server does not support maxTimeMS for writes (see https://docs.mongodb.com/manual/reference/command/delete/, for example). The driver's default socket read timeout is infinite, so if you're getting a socket timeout, that means that your application must be setting it when constructing the MongoClient. To avoid the socket timeout, try setting that timeout to a larger value, or else use the default value (which is to never time out). |