I made an application where i use
Test.find({Status:'waiting'}, sort: {Time:1}).observe
added: (document) ->
Test.remove _id:document._id
dosomething(document)
dosomething() matches the documents contents with other documents and calculates a math outcome.
The purpose of this is to do a server side reactive computation of documents inserted by the user.
There is no UI or direct connected users on this application.
I works pretty well and this is the only purpose of this application or “applet”
The only thing that bugs me is the more computation it does the more RAM it consumes over time and does not free it until it does not respond anymore.
Any ideas?
If i restart the app it goes back to normal. It runs on the AWS