Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is PostgreSQL or MySQL more popular with Node.js? [closed]

In absolute terms, Postgres has more features and has been used at scale by Instagram, etc. while MySQL has a much bigger user base and has been used at scale by likes of Facebook, Quora, etc. But how about in combination with NodeJS?

Which is more popular with NodeJS?

like image 448
dakini Avatar asked Sep 13 '25 23:09

dakini


1 Answers

  1. MySQL is probably more popular, solely in terms of userbase. (You sorta answered this yourself)

  2. MySQL probably has more examples around the net which could help make things easier to set up. You'll probably also find MySQL more likely to come preloaded on a VPS if that's the sort of route you're taking. However setting up PostgreSQL on your server is not difficult, and there is plenty of documentation available.

  3. It really depends on what your intentions are with your data. Digital Ocean wrote a nice concise comparison of MySQL and PostgreSQL found here

As far as how these play with node.js, in my experience the node modules for PostgreSQL and MySQL are equally pleasant to work with. Ultimately its more about picking the database that suits your data and what you want to do with your data. Then deciding how it fits into your node stack.

like image 99
Zach Russell Avatar answered Sep 15 '25 12:09

Zach Russell