How to find the max/min size of documents in a large bucket

Hi.

Couchbase Server 6.0.4

We have a 2 huge buckets of 190 million and 800 million documents.

Is there a simple way to get the size in bytes of document which is the biggest/smallest? Looking to find the range of size which the buckets hold.

Thanks
Ganesh

Here’s a blog for finding the average. You would need to make different functions for min and max.