Building apps
What is a database?
A database is a structured store for an application's data, organized so information can be saved, found, updated, and related to other information reliably.
New to Bolt? Sign up free.
Technical definition
A database is a system for storing and retrieving structured data, managed by database software that handles queries, enforces constraints, controls concurrent access, and maintains integrity.
The main families:
- Relational: data in tables of rows and columns, with defined relationships between tables, queried with SQL. Postgres and MySQL are the common examples.
- Document: data in flexible JSON-like documents without a fixed schema.
- Key-value: simple pairs, optimized for speed and caching.
Relational databases suit most business applications, because business data is relational: customers have orders, orders have items.
In plain terms
A database is where your app keeps things so they are still there later.
Think of a spreadsheet that many people can use at once, that enforces its own rules about what belongs in each column, and that can answer questions across thousands of rows instantly.
Why it matters
The database is the part of your software that is genuinely valuable. Interfaces get redesigned and features get replaced. Your customer records, order history, and bookings are the asset.
That has two consequences worth acting on. Know where your data lives and how to get a copy out, because a business whose customer list exists only inside one vendor's product has a single point of failure. And get the structure roughly right early, because changing how data is organized after there is a year of it in there is the expensive kind of change.
A database is also the line between a website and an application. Anything involving customers logging in, records that persist, or a report you want to run needs one.
