DEV Community

Christian Vasquez
Christian Vasquez

Posted on

Explain non-relational databases like I'm five

Try to explain it for someone who already knows relational databases.

Top comments (2)

serhuz profile image
Sergei Munovarov

Key-Value DBs are like RDBs, but you can only have 2 columns: ID and VALUE.
Wide column DBs are like RDBs, but you may discover that some columns may suddenly go missing.
Document-oriented DBs are like RDBs, but you don't have JOINs (not entirely true for MongoDB though) and you can only store JSON in every row.
Graph DBs are like RDBs, but you get insane query language and relationships between nodes are also entries in the dedicated table.

Something like that.

nielsbrinch profile image
Niels Brinch

You could even say that document-oriented DBs are like Key-Value DBs too. Just the "id" property of the document is the key and the entire document is the value.