I am using Mongoose, but I was wondering if it would be faster if accessed MongoDB via the mongodb npm module. What does your experience say?
I use the native driver, because when I started using Typescript, mongoose didn´t fit in my imagination how my code has to be structured. After some time using the native driver I can say I don´t regret the change from mongoose. If its faster or not I can´t say, but I think it is possible because monogoose needs to do more than the native driver.
It is totally dependent on your requirement but to cut the long discussion short.
Mongoose is an Object modeling tool to design your MongoDB's collection schema within your application and it is built on top of the Native MongoDB driver to allow us to access the database.
Edit: Native MongoDB driver is faster.
Happy Coding!!
Gautham
How do you comfort a JavaScript bug? You console it.. Hahaha...... Ok.
native mongo driver is faster, cos yeah Mongoose does a lot of ORM related work.
and yeah, mongoose's primary dependency is the native mongo driver :)
I personally prefer mongojs, it's clean and simple.
Hope this helps!