I’m experimenting with using couchdb as a message store and would like to report the message size.
Ideally it would be nice to read a _size attribute. At worst I could check the string length of the entire document’s JSON. I may even want to use the size as a view key.
What do you think is the best way to record document size and why do you think that method is best?
You could make a view;