Thursday 21 February 2019

Mongoose Data collection

is it possible to run a function on a mongdb collection without having to pull everything into ram first? I'm trying to get certain data from a db, and later I'm using that data to work some math on it. If the output meets a condition, then I'll keep the data; else, I'll get rid just ignore the whole object in the collection. So, Do I have to load everything onto memory first by pulling the data from the db, or is there a better way? (btw, I'm using mongoose)

Submitted February 21, 2019 at 09:50PM by r_gui

No comments:

Post a Comment