Difference between append() and prepend() in terms of performance


Hi all, I am new to couchbase and I want to know what is the difference between append() and prepend() operations in terms of performance which operation is fast then other. Thanks in advance.


I’d expect them to be pretty similar - essentially the same data is sent over the wire, the only difference is that at the server-side it will either form a new value from {old+prepend} or {append+old}.

If you’re looking at a new application you might want to consider the sub-document API added in 4.5 which allows much more flexibility in partial document updates (and access).


OK, I got your point Thanks @drigby