Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
4.5.0, 5.0.0
-
None
Description
Capturing the feature request / performance enhancement.
When it is more efficient (*) only send the difference rather than the entirety of the new document via DCP. For internal replication, this could reduce the volume of traffic between nodes and for external DCP clients, could reduce traffic externally too.
(*) Empirical evidence is required to determine a heuristic for when it is more efficient but in general consider making a small update to a large document (e.g. appending a single byte to a 19MB doc), most sub-doc operations.
Further considerations:
- If doc is not resident on replica side, would require a bg fetch to construct entirety of document
- Prior work has suggested this approach gives a larger benefit over DCP compression