These three words describe where analytical data lives. They overlap, and vendors blur them on purpose, so it helps to separate the ideas.
Data warehouse
A warehouse is a database designed for analysis. Data is loaded into tables with a defined schema, and queries scan many rows quickly, usually thanks to columnar storage. People connect business tools straight to it.
Its strength is structure and speed for SQL. Its weakness is rigidity: you decide the schema first, and unstructured data such as images or free text does not fit naturally.
Data lake
A lake is cheap object storage, such as a bucket of files, holding data in its original form: CSV, JSON, logs, images, Parquet. You do not need to decide how the data will be used when you store it. This is called schema on read.
The strength is flexibility and low cost for very large volumes. The risk is a swamp: without naming rules, ownership and a catalogue, nobody knows what a folder contains or whether it is still correct.
Lakehouse
A lakehouse keeps the data in open files on cheap storage, but adds a table layer on top that provides transactions, schema enforcement and versioning. Formats such as Delta Lake, Apache Iceberg and Apache Hudi do this. The same data can then serve SQL analysts and data science work.
The promise is one copy of the data instead of a lake plus a warehouse that must be kept in sync. The price is that you operate more moving parts, or pay a vendor who does.
Choosing
- A small team with mostly structured data and SQL needs: a warehouse alone is usually the simplest answer.
- Lots of raw or unstructured data, and consumers beyond SQL: add a lake, with a catalogue and clear zones such as raw, cleaned and curated.
- You already have both and are tired of copying between them: look at a lakehouse table format.
-- A warehouse-style table: schema decided first.
CREATE TABLE page_views (
viewed_at timestamptz NOT NULL,
user_id bigint,
url text NOT NULL
);Takeaway
Pick the simplest storage that answers today's questions, keep the raw data, and write down who owns each dataset. The label matters less than the discipline around it.
Comments