Data and retrieval

Data warehouse

A data warehouse is a central database designed for analysis, where cleaned data from many business systems is stored together so teams can run reports, dashboards and AI queries across all of it.

Operational systems such as a CRM, shop or accounting package are built to run the business one record at a time. They are poor at answering questions across years of history and several systems at once. A data warehouse is a separate database designed for exactly that: it holds a copy of data from many sources, organised for analysis. For AI builds it is often the foundation for forecasting, dashboards and assistants that answer questions about the numbers.

How it works

Data reaches the warehouse through ETL or ELT pipelines. Inside, it is usually arranged into fact tables, such as orders or payments, and dimension tables, such as customers, products or dates, a layout that makes reporting queries fast and understandable. Cloud warehouses such as Google BigQuery, Snowflake, Amazon Redshift and Azure Synapse separate storage from compute, so large queries can run without slowing the business systems that produced the data.

A related term is the data lake, which stores raw files of any format cheaply, and the lakehouse, which adds warehouse-style tables on top of a lake. For most small and mid-sized buyers, a warehouse, or even a well-organised PostgreSQL database, is enough.

AI fits on top in several ways. Text-to-SQL assistants let staff ask questions in plain English and get answers from warehouse tables. Forecasting and predictive analytics models train on the warehouse's history.

What it means for cost

Setting up a warehouse is rarely the expensive part; getting good data into it is. Costs depend on how many sources need connecting, how much cleaning and reconciliation they need, and how clearly the business has defined its metrics. Two departments with different definitions of "active customer" will produce two different numbers until someone decides.

Running costs on cloud warehouses depend on storage and on the volume of data each query scans, so poorly designed queries or dashboards that refresh too often can raise the bill. Ask a builder how the tables will be modelled, how metrics are defined and documented, and how query costs are monitored.

Common questions

Does an AI project need a data warehouse?

Not always. A document assistant does not; it needs a search index. Projects that analyse numbers across several systems, such as forecasting, reporting assistants or churn prediction, usually benefit from one, because the model needs clean, joined history.

What is the difference between a database and a data warehouse?

Both store data. An application database is tuned for many small reads and writes as the business runs. A warehouse is tuned for large analytical queries across lots of history, and usually combines data from several applications.

Related terms

Pricing a build that involves Data warehouse? Send the brief and get a fixed price set next to the market range.Get a quote