SQL vs NoSQL comparison table
Relational (SQL) and NoSQL databases by data model, schema, scaling and best fit, for concept questions and technology decisions.
The diagram
Reading it step by step
- Data model: SQL Tables of rows and columns; NoSQL Documents, key-value, graphs
- Schema: SQL Defined up front; NoSQL Flexible
- Scaling: SQL Mostly vertical; NoSQL Mostly horizontal
- Best fit: SQL Orders and accounting; NoSQL Logs and live feeds
Shape by shape
| Shape | Symbol | Connections |
|---|---|---|
| SQL | Option | ← Data model: Tables of rows and columns, Schema: Defined up front, Scaling: Mostly vertical, Best fit: Orders and accounting |
| NoSQL | Option | ← Data model: Documents, key-value, graphs, Schema: Flexible, Scaling: Mostly horizontal, Best fit: Logs and live feeds |
| Data model | Criterion | → SQL: Tables of rows and columns, NoSQL: Documents, key-value, graphs |
| Schema | Criterion | → SQL: Defined up front, NoSQL: Flexible |
| Scaling | Criterion | → SQL: Mostly vertical, NoSQL: Mostly horizontal |
| Best fit | Criterion | → SQL: Orders and accounting, NoSQL: Logs and live feeds |
Symbols used here
| Symbol | Meaning |
|---|---|
| Option | The column headings. |
| Criterion | The row headings. |
Diagram text
Paste this text into the editor to get the same picture, then change the names to fit your own work.
# SQL vs NoSQL comparison table
compare
| - | SQL | NoSQL |
|---|---|---|
| Data model | Tables of rows and columns | Documents, key-value, graphs |
| Schema | Defined up front | Flexible |
| Scaling | Mostly vertical | Mostly horizontal |
| Best fit | Orders and accounting | Logs and live feeds |