DEV Community

Cover image for What is your database of choice?
Andrew Baisden
Andrew Baisden

Posted on

What is your database of choice?

At the moment my preference is mongoDB however I am trying to get back up to speed with SQL so I can use PostgreSQL as well.

Oldest comments (40)

Collapse
 
henry_adams profile image
Henry Adams

Switched to PostgreSQL from SQL Server.
I had nothing against SQL Server, other than the fact that it is very windowscentric. PostgreSQL is just as powerful, plus I really like notifications system.

Collapse
 
leastbad profile image
leastbad

Tell us more about PG notifications? I'd love to see an example of how it works.

Collapse
 
rhymes profile image
rhymes

It's a basic pub/sub system. The DB sends events to connected clients. You have a channel where a client can be in listening mode on and the DB or other clients can send events to. For example: tapoueh.org/blog/2018/07/postgresq...

Thread Thread
 
buinauskas profile image
Evaldas Buinauskas

To be fair for comparison, SQL Server has service broker, which does the same. It also has became available on Linux recently 👌

But both are great RDBMSes!

Thread Thread
 
leastbad profile image
leastbad

Wow, I haven't worked with SQL Server since Rails came out in 2004.

I have to say, it must have been a cold day in hell when they approved porting SQL Server to Linux. Good for them, though. The irony is that I am now back on Windows 10, running PG inside of a headless WSL2 Ubuntu VM.

Collapse
 
mikerogers0 profile image
Mike Rogers ✈️

PostgreSQL! I used to use MySQL/MariaDB, but PostgreSQL seems to be normal choice for Rails devs, plus I have very few surprises with it.

I used MongoDB recently, while it was fun I realised how much I love having explicit migrations for DB columns.

Collapse
 
andrewbaisden profile image
Andrew Baisden

What do you use to interact with the database do you use a GUI or the CLI? I am currently trying out valentina-db.com/en/ and before that I used pgAdmin.

Collapse
 
mikerogers0 profile image
Mike Rogers ✈️ • Edited

CLI & TablePlus.

I like the CLI (e.g. the rails console) as it gives me all the stuff my apps does. I normally use TablePlus as a read only view of what's going on.

Collapse
 
lehmannsystems profile image
Mike

I still kinda like MySQL :P

Collapse
 
anders profile image
Anders

PostgreSQL, has been rock solid since the start. (Prior to that used SQL Server primarily (some real weird issues with that one)).

Collapse
 
gac profile image
Igor Ilic

Depends on the type and the size of a project.

For smaller or less complicated projects I'd use MySQL

But for larger or complicated projects I'd use MS SQL Server

Collapse
 
sakshatshinde profile image
Sakshat

Depends on the project :p

Collapse
 
x1unix profile image
Denis Sedchenko

PostgreSQL is my standard choice for SQL.
All other options (NoSQL) are depends on project.

Collapse
 
skenekt profile image
Alexey Suharev

Psql

Collapse
 
kylebernhardy profile image
Kyle Bernhardy

Andrew,

Check out my company's product, HarperDB. It is NoSQL & SQL with a single underlying data model. So you can still execute NoSQL operations while getting up to speed on SQL. If you are interested & it fits your needs / use case you can spin up a free instance: harperdb.io/harperdb-cloud-get-sta...

Collapse
 
andrewbaisden profile image
Andrew Baisden

Cool thanks I will create an account and give it a try.

Collapse
 
djnitehawk profile image
Dĵ ΝιΓΞΗΛψΚ

+1 for mongodb
never going back to sql ;-)