Memoize in Meteor to speed up aggregate and complex functions
Some functions take a long time to run, this can be especially true with Mongo Aggregation functions. To improve this, we can save the results of the function into a database (server side or client side) and read the result…