title: Finding the size of the documents that are stored inside the Couchbase server
body: <p>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 <strong>stored inside the Couchbase server</strong>. That is, I don't want to retrieve the documents through views, use <code>stringify</code> operation on JSON documents to find it's length and I don't want to use <code>decodeBase64</code> operation on BinaryDocument to find it's length. That gives me the decompressed file size.</p>
  
  <p>In short, I want to know how much each document takes up space inside the server. Or at least, the <strong>average space taken by the JSON documents</strong> and the <strong>average space taken by the binary documents</strong>. This is to know how efficiently the Couchbase server compresses the documents while storing them inside.</p>
  
  <p>Can someone please help me with this?</p>