[CSHARP-237] Add a variant of Update that only sends the changed fields to the server. Created: 02/Jun/11 Updated: 10/Jun/19 Resolved: 10/Jun/19 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.0 |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Minor - P4 |
| Reporter: | Robert Stam | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 4 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Add a variant of Update that only sends the changed fields to the server to reduce network bandwidth. This will probably require that the client code keep a copy of the original document around for Update to compare against. |
| Comments |
| Comment by Harry Mexxian [ 01/Jun/12 ] |
|
Yaaaaay! (assuming that means its on the todo list) |
| Comment by Craig Wilson [ 18/Apr/12 ] |
|
Have a look at this thread: https://groups.google.com/forum/?fromgroups#!topic/mongodb-csharp/A_LBLiY8jXw He is looking for this feature as well. I pointed him at something I wrote a while ago to do this sort of thing, along with tests for it. Feel free to steal, use, finish, whatever... |
| Comment by Harry Mexxian [ 17/Apr/12 ] |
|
Beyond the potential savings in bandwidth, this would also reduce how much one has to worry about different services overwriting each others changes. I may have a stab at it. I guess you'd need to define whether the tracking is on before you load the document. |
| Comment by Craig Wilson [ 15/Dec/11 ] |
|
I believe this type of intelligent tracking would occur at a level above the driver. Otherwise, the driver starts getting into a lot of things it shouldn't need to know about. I like the idea though. |