Saturday 22 April 2017

is mongo stored javascript good solution to multiple DB inserts in nodejs

I have a functionality is Mean Stack which has multiple collection inserts and creation. If it do that in plain mongoose , its going to be multiple Mongo calls and it might be slow. Can i use mongo stored javascript for this?Pass some values to mongo javascript and it can do all the things from there.. Is it a suggested approach?



via Jocket

No comments:

Post a Comment