DEV Community

[Comment from a deleted post]
Collapse
 
papaponmx profile image
Jaime Rios

What is your criteria for deciding a database? Specially since relationships can be abstracted to a Mongoose ORM or a GraphQL data layer.

Collapse
 
mvoloskov profile image
Miloslav 🏳️‍🌈 🦋 Voloskov

I'm usually using multiple databases, but my criteria are:

  1. How much data manipulation is needed? If there's the need for something more than just plain reads and writes, it's gonna be a SQL database
  2. Read-first vs write-first
Collapse
 
papaponmx profile image
Jaime Rios

Could you explain what you mean by read-first vs write-first?

Thanks for taking the time to answer this question :)

 
mvoloskov profile image
Miloslav 🏳️‍🌈 🦋 Voloskov

Read-first is when the read operations are way cheaper than writes. Write-first... you guessed it :)