Home › Data › Databases
Data

Databases

A database stores your data in a way you can search, update, and rely on. Almost every real application has one behind it.

Tables and rows

A relational database organizes data into tables of rows and columns, like a spreadsheet with rules. Each table holds one kind of thing: users, orders, posts.

Relationships

Tables link to each other by keys. An order row stores the user_id of the user who placed it, so you can join them back together.

SQL vs NoSQL

SQL databases (PostgreSQL, MySQL) use tables and a query language. NoSQL databases (MongoDB, Redis) store documents or key-value pairs and trade some structure for flexibility and speed.

Keep reading: TLS / HTTPS  ·  Web Servers  ·  HTTP