[CSHARP-3980] Remove reliance on "$explain" modifier so FindOpcodeOperation can be removed Created: 30/Nov/21 Updated: 28/Oct/23 Resolved: 20/Jan/22 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.15.0 |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Dmitry Lukyanov (Inactive) | Assignee: | Dmitry Lukyanov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Epic Link: | Remove code for pre-3.6 server versions | ||||||||
| Comments |
| Comment by Githook User [ 20/Jan/22 ] |
|
Author: {'name': 'DmitryLukyanov', 'email': 'dmitry.lukyanov@mongodb.com', 'username': 'DmitryLukyanov'}Message: |
| Comment by Robert Stam [ 13/Jan/22 ] |
|
I think the goals of this ticket are actually: 1. Remove the `FindOpcodeOperation` which now is only used when `$explain` modifier is present 2. Reimplement `MongoCursor.Explain` so that it uses `ExplainOperation` instead of `$explain` The following should not be goals:
The main reason to not support the `$explain` modifier is that most of our APIs are strongly typed (e.g. `IMongoCursor<Person>`) and the `$explain` modifier changes what is returned from the server such that it can't be deserialized anyway (i.e. the explain output cannot be deserialized into a `Person` instance). |