designwithfocus

Data & databases

Data Lake vs Data Mart: Scope, Grain and Who Queries It

By Design With Focus Team 7 min read
A wide raw-data store beside a small subject table used by one team

Short answer

Choose a data lake to keep raw, wide-scope data, and a data mart when one team needs a smaller curated subject. AWS calls a lake a central store for raw and unstructured data, and a mart a warehouse for one business unit. Microsoft calls the lake's timing schema-on-read. Databricks calls a mart a curated subset, often queried with SQL. Neither store replaces the other.

Last verified against the sources listed below.

Key takeaways

  • A data lake keeps data as it arrived, including unstructured files, and defers structure.
  • A data mart is smaller and subject-focused, usually structured for one team or function.
  • AWS says marts often filter or summarize a warehouse, and may be project-scoped.
  • Microsoft names the lake pattern schema-on-read and the warehouse pattern schema-on-write.
  • Databricks lists independent, dependent, and hybrid marts, and says marts are commonly SQL.
  • No price is quoted here. Scope and grain decide the fit, not a guessed bill.

Data lake vs data mart is a scope choice. Keep the wide, raw collection in a lake, and hand one team a smaller, curated subject in a mart.

AWS’s comparison states both jobs in one place: a lake is a central repository for raw and unstructured data you can store first and process later, and a mart is a data warehouse for a specific business unit such as finance, marketing, or sales.

They are not two names for one database. A relational database can sit under the mart. It is a poor description of a lake full of files that were never modeled.

What is a data lake?

A data lake is a central store for data in the form it arrived, at a scale that includes files a warehouse would reject. AWS’s data lake page calls it a centralized repository for all structured and unstructured data at any scale. You store the data as-is, without structuring it first, and later run analytics from dashboards to machine learning.

The schema is not fixed on the way in. AWS says a lake holds relational data from business applications and non-relational data from mobile apps, devices, and social media. The structure is not defined when the data is captured, so you can keep data before you know every question.

Microsoft’s Azure data-lake page names that timing schema-on-read. The lake keeps the original, untransformed state and transforms when someone needs the data. A warehouse does the opposite, schema-on-write, enforcing structure as it ingests.

Microsoft lists the mix as relational tables, semistructured data such as JSON, XML, or logs, and unstructured data such as images, audio, or video. It says lakes scale to terabytes and petabytes.

Google Cloud’s overview uses the same outline: a centralized repository for large amounts of structured, semistructured, and unstructured data in its native format, without a predefined schema, aimed at analytics and machine learning.

Databricks adds that a lake can sit on object storage and keep raw data next to tables that are already refined. Its comparison table lists the intended lake users as data scientists, and it warns that a lake without governance becomes a swamp.

What is a data mart?

A data mart is a smaller, subject-focused store for one team. AWS says it is also a relational database, and that calling it a different technology from a warehouse is really a usage distinction.

Practical use still diverges. Marts have fewer sources, a single-subject focus, and a decentralized place in the organization. They often filter and summarize an existing warehouse.

AWS’s table puts the contrast in short rows. A warehouse is centralized across subjects, organization-wide, and can run from hundreds of gigabytes to petabytes. A mart is one subject, one community or department, and generally up to tens of gigabytes.

Warehouse design on that table is top-down. Mart design is bottom-up, because the details of the subject are already known, and the mart may hold summarized data rather than the full detail.

Databricks’s data mart glossary calls it a curated set of tables for a single team, community, or line of business, normally smaller than the enterprise warehouse and commonly used for analytics and reporting. It says marts typically use a dimensional model and a star schema, and that users query them with SQL. End users are often read-only, so a business user does not alter the tables.

Databricks names three forms. An independent mart is not part of a warehouse, a dependent mart is a section selected from one, and a hybrid mart mixes warehouse data with other sources.

The glossary also notes the failure mode: departments copy data until the marts become conflicting silos.

How do scope and grain differ?

Scope is how much of the organization the store tries to hold. Grain is how detailed each row or file is. The lake’s scope is wide and its grain can be raw. The mart’s scope is one subject and its grain is often a summary.

Data lake Data mart
Scope Central, many sources and file types One subject or one team
When structure is applied At read time, in Microsoft’s terms Before or as it is modeled for that team
Grain Raw files through to refined tables Often filtered or summarized
AWS size sketch Any scale, not a single cap Generally up to tens of gigabytes
Who queries it Scientists and analysts, by source One department, often with SQL
Risk if you skip design A swamp of unnamed files A silo that drifts from the warehouse

AWS says warehouses tend to preprocess with extract, transform, and load, while lakes often load first and transform when required. That is why the lake can accept a log or an image the mart would not store as a fact table. The mart’s value is the opposite: a person in one department can query a subject without joining the entire history.

Cloud computing is where these stores usually run. The hosting choice does not erase the grain. A mart in the cloud is still a subject store. A lake in the cloud is still a raw collection until someone models it.

When should you choose a data lake?

Choose a data lake when you must keep data before you know the questions, or when the data is not rows. Microsoft’s list is the test: JSON and logs, images, audio, video, plus relational extracts, held without forcing one schema on the way in. AWS’s test is similar: store as-is, then use SQL, search, or machine learning later.

Choose it when several groups will share one landing zone. Databricks says a central lake can reduce separate copies, if you also catalog and govern it. The same page says a lake without transactions, quality checks, and performance work turns into a swamp.

“Put everything here” is not a design. Landing raw data is the design, and naming it, plus controlling who reads it, is the other half.

Do not choose a lake as the only store for a weekly department report. The report wants a stable grain. That is the mart’s job, fed from the lake or from a warehouse, not a hunt through raw files every Monday.

When should you choose a data mart?

Choose a data mart when one team needs a subject they can query without wading through every source. AWS’s examples are finance, marketing, and sales. Databricks’s examples are the same shape: a line of business with curated tables and SQL.

Choose a dependent mart when a warehouse or a governed lake already holds the history and the team needs a slice. Choose an independent mart, in Databricks’s terms, when that central store does not exist and the subject can be loaded on its own. Shut a project mart down when AWS’s note applies: the use case is finished, and the mart was never meant to be permanent.

Do not choose a mart as the only copy of raw files you cannot yet model. You will throw away the grain you might need later, or you will stuff files into a store that expected tables. Keep the raw scope in the lake. Publish the subject in the mart.

An image on a report is not either store. The Image Compressor shrinks a picture in the browser. Analytics data stays in the lake or the mart you picked for its scope.

Frequently asked questions

Is a data mart just a small data lake?

No. AWS describes a data lake as a central repository for raw and unstructured data that you can store before you process it. A data mart, on the same page, is a data warehouse aimed at one business unit, such as finance, marketing, or sales. The mart is structured. The lake is allowed to stay raw. Databricks adds that a mart is a curated set of tables for one team, normally a subset of a larger warehouse. Size differs. The grain and the readiness of the data differ more.

Who is expected to query each one?

AWS says a mart serves a single community or department, while a warehouse serves the organization. Databricks says mart users typically query with SQL, often with read-only access so they do not change the tables. Its lake table lists data scientists as the intended lake users, and data analysts as the intended warehouse users. Microsoft lists lake use cases that include analytics, machine learning, and reporting, so a lake is not off limits to analysts. A department report still fits the mart.

What does schema-on-read mean for the lake?

Microsoft says a data lake stores data in its original, untransformed state and applies transformation when the data is needed. That timing is schema-on-read. A warehouse, by contrast, enforces structure as it ingests data, which Microsoft calls schema-on-write. AWS makes the same timing point: the lake's schema is not defined when the data is captured, and teams often load first and transform later. You do not have to know every future question on the day the file arrives.

Can a data mart exist without a warehouse?

Databricks says yes, and names that form an independent data mart. It is focused on one subject, can draw on internal and external sources, and is not built as a slice of an existing warehouse. A dependent mart is the slice: a defined section taken from a centralized warehouse. A hybrid mart combines warehouse data with other sources. AWS notes that marts often filter and summarize a warehouse, which is the dependent pattern, and also that a mart can be created for a project and then shut down.

Does this comparison include a price?

No. The pages used here describe scope, structure, and users. Microsoft says lakes scale to terabytes and petabytes. AWS says a mart is generally up to tens of gigabytes in its warehouse-versus-mart table, and that a warehouse can run from hundreds of gigabytes to petabytes. Those are size sketches, not bills. A vendor calculator would be a different page. Pick the store for the grain you need, then read that vendor's current price there.

Sources