Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which database engine is best for node.js apps? [closed]

I am looking for a database engine which is the best for storing thousands of records. I first wanted to use MySQL, because I know it best, but I'd like to have strong answer.

I need predefined columns, database can be as small as 10 MB or as "big" as 10 GB of data and it would be cool if that engine is fast for reads (insertions may be a bit slower). I don't need fast-fulltext-search or regexp searching. To give you an example - selecting items via slug extracted from link.

I saw this site before but I still don't know what is best option for me.

So here is my question: Which database engine is best for uses like mine?

like image 794
kfasny Avatar asked Oct 17 '13 15:10

kfasny


People also ask

Which DB is best for NodeJS?

“Node. js can only be used with MongoDB (which is the most popular NoSQL database).”

For which application NodeJS is not well suited for?

Not Suitable for Heavy-Computing Apps Node. js doesn't support multi-threaded programming yet. It is able to serve way more complicated applications than Ruby, but it's not suitable for performing long-running calculations. Heavy computations block the incoming requests, which can lead to decrease of performance .

Why is MongoDB used with node?

The MongoDB Node. js Driver allows you to easily interact with MongoDB databases from within Node. js applications. You'll need the driver in order to connect to your database and execute the queries described in this Quick Start series.


1 Answers

You should look at MEAN stack. Personally, I like MongoDB - I use an ORM tool like mongooseJS - It increases your development speed rapidly. The one thing i really like about having Node JS, Express body parser, mongodb and mongoose is I deal everything on the server side in one language - Javascript and I expose REST services which can be consumed on Web (typically Angular - the A in MEAN stack or backbone) based application.

like image 191
Pradeep Mahdevu Avatar answered Nov 15 '22 21:11

Pradeep Mahdevu