Hi, I have two types of documents, JSON and BinaryDocument, that are being stored in the buckets. I am in need of evaluating the sizes of the documents that are stored inside the Couchbase server. That is, I don’t want to retrieve the documents through views, use stringify
operation on JSON documents to find it’s length and I don’t want to use decodeBase64
operation on BinaryDocument
to find it’s length. That gives me the decompressed file size.
In short, I want to know how much each document takes up space inside the server. Or at least, the average space taken by the JSON documents and the average space taken by the binary documents. This is to know how efficiently the Couchbase server compresses the documents while storing them inside.
Can someone please help me with this?