I have a use case where I have small amounts of data which needs to be appended to the same document (record).
I have read, that the perfomance of appending degrades as the size of the document increases and above 100KB this performance impact might be significant - see http://developer.couchbase.com/documentation/server/4.0/developer-guide/raw-append-prepend.html
So the strategy would be to start a new document when the old has reached 100KB. The problem is how to tell the size of the document, without everytime reading the whole document to determine its size - to see whether or not it has already reached 100KB.
I was looking at the document (record) metadata, but it seems there is no “size” metadata.
Any strategy to efficiently determine the size of the document (record)?