Sunday 24 January 2016

Mongoose vs MongoDB native for a Mongo newbie?

Hi everyone, I know this has been already talked through but I would like to have some more opinions about it.Considering I have just started with MongoDB in general and I have done a couple of example projects with both MongoDB and Mongoose, I am having a very hard time to choose whether to use one or the other on my NodeJS projects.Here are the reasons why I would choose MongoDB native:The documentation is (in my opinion) much better organized. It's very easy to find the method you are looking for and every single one has at least one good example that's quite easy to understand.Should be faster (refs: http://ift.tt/1K4OL3r , http://ift.tt/1PM3vRo )Here are the reasons why I would choose Mongoose:Need to define a schema. Not a huge plus in my opinion, but considering my little experience this could be of some help.No need to care about opening and closing of db connections, optimizations and (maybe) security issuesI care a lot about the documentation since it's a daily resource while coding on new stuff. Mongoose docs ( http://ift.tt/1qEPsTa ) and navigation is not very well organized imho, while it's much better over at MongoDB.What do you think? Why would you choose one over the other considering the above premises?Thanks

Submitted January 24, 2016 at 12:08PM by damnko

No comments:

Post a Comment