If I have a backbone model on the server (node.js) and insert data on each route (using Express), will that model grow infinitely? Should I clear memory manually when the model has performed what it was supposed to do?
Pseudo-example:
var model = require('./model')
route.index = function() {
var key = new Date()
model.set(key, 'foobar')
console.dir(model.toJSON())
}
On each reload in the browser, this model will grow. My question is: do I need to manually empty the model or is there a "garbage collector" in node that will take care of this?