mongodb server-side javascript is client-side actually?
问题 I have a huge collection of documents and I want to extract some statistics on it. It needs to be executed periodically each 15 minutes. Most of the stats are based on the document size, so I need to fetch the documents and calculate its size. The output of my stats is just a single line with some stats, regarding the size of the documents. (I am not fetching a whole collection, just a subset of it, so I cannot use the collection stats provided by mongodb) What I'd like is to make this