0

I just started using node, backbone and mongoose not so long ago to create my first web app.

At the very beginning, I followed tutorials, and used backbone client side to define models. Those models mirror my mongoose schemas server side.

When I run schema.save() on one of my models, my data is automatically sent back to the client, with an _id. But now that my app is almost finished, I realize that I don´t really need to save anything, as the only thing I do is query an api, and the data doesn´t have to be reused.

So my question is, what is the best way to keep the same mechanisms, but without saving anything?

The end reason is that I plan to run the app on an ec2 instance, and knowing that I don´t need to save anything, I think it is more beneficial to reduce the IO usage by not having any database.

Thanks, and sorry if the question seems dumb.

4

0 回答 0