Book a free call

Data Lakehouse Best Practices: Run It Well

A well-run lakehouse uses one format, partitions for queries, checks quality in the pipeline and governs access like a warehouse. That keeps it fast and trustworthy.

Hertiv engineering teamReviewed by a senior engineer
6 min read
Data Lakehouse Best Practices: Run It Well
On this page

Short answer

A data lakehouse is a data platform that stores raw data in open file formats and adds warehouse-style structure on top, so one system serves both analytics and machine learning. Running it well means keeping that structure clean, fast and governed as the data grows.

What does a well-run data lakehouse look like?

A well-run data lakehouse looks boring from the outside: queries return in seconds, the numbers match the source systems, and nobody argues about which table is correct. Underneath, that calm comes from a few habits applied every day: one table format, partitions that match real queries, quality checks in the pipeline, and access rules that are actually enforced.

The lakehouse idea is simple. Raw files land in cheap storage, and a table format adds transactions, schema and versioning on top, so analysts and models can query the same data without copying it into a warehouse. The practices below protect that idea as the platform grows from one team to many.

This is about running a lakehouse, not building one. If you are still deciding how to build it, how to implement a data lakehouse covers the build steps.

If you are new to the idea itself, what a data lakehouse is explains the concept from the start.

Pick one table format and stick to it

Pick one open table format, such as Delta Lake, Apache Iceberg or Apache Hudi, and use it for every table in the lakehouse. The format is what gives your files transactions, schema enforcement and time travel, so mixing formats means mixing behaviours: one table supports updates, another does not, and your team has to remember which is which.

Choose by what your team already knows and what your engine supports best. If your queries run on Spark, Delta Lake is a natural fit; if you query from several engines, Iceberg's broad support helps. The exact choice matters less than the discipline of one format everywhere, because every new format adds a new set of edge cases to learn and debug.

Write the choice down with the reasons, and make it hard to break: new tables get created in the chosen format by default, and anything else needs a written exception. A format decision made once saves dozens of small arguments later.

Partition for the queries you actually run

Partitioning splits a table into folders by a column value, so a query that asks for one month reads one folder instead of the whole table. Done well, it is the cheapest speed win in a lakehouse. Done badly, it creates thousands of tiny files that slow everything down.

Partition by the columns your queries actually filter on, not by habit. A date column works when most queries ask for a date range; a region column works when teams usually query one region. Partitioning by a column with thousands of distinct values, such as a user id, creates a folder per user and helps nobody.

Query pattern Partition by What it avoids
Daily reports by date Date Scanning months of data
Reports per region Region, then date Scanning other regions
Lookups by customer Do not partition Thousands of tiny folders
Full-table model training Do not partition Skewed file sizes

Review partitions every few months. Query patterns change as teams and products change, and a partition scheme that fit last year may be the reason queries are slow today.

Put data quality checks in the pipeline

Quality checks belong in the pipeline, not in a dashboard someone reads once a month. Every load should check row counts against the source, null rates in key columns, value ranges for numbers, and freshness against the expected arrival time. A load that fails a check should stop and alert a person, not quietly write bad data.

Start with five checks per table: the row count is within the expected range, the primary key has no duplicates, the key columns have no unexpected nulls, dates fall inside the expected window, and the load arrived on time. Those five catch most real failures, from a source system that sent half its rows to a job that ran twice.

Keep the checks close to the data: a check that runs after the load is better than a report that runs the next day. And record every failure with the table, the check and the time, so the team can see which tables fail most and fix the source instead of patching the symptom.

Govern access like a warehouse

A lakehouse holds raw files, which makes it tempting to let anyone read anything. Resist that. Apply the same access rules you would in a warehouse: roles per team, column masking for personal data, and an audit log of who read what. The fact that the data sits in files does not make it less sensitive.

Separate raw, cleaned and curated zones. Raw data keeps everything as it arrived, cleaned data fixes formats and obvious errors, and curated data is the version analysts and models should use. Access narrows as data moves from raw to curated, and the curated zone is the only one most teams ever need.

Review access every quarter. People change teams, projects end, and service accounts accumulate permissions nobody remembers granting. A short review that removes what is no longer needed keeps the lakehouse safe without slowing anyone down. For the wider engineering side, data engineering services cover the pipelines that feed the lakehouse.

Example (hypothetical): compaction that cut scan time

Example (hypothetical): a retail team loads 2,400 small files of 5 MB each into its lakehouse every day, which is 12,000 MB, or about 12 GB, of new data. Queries slow down because the engine opens thousands of files for every question, and a daily report scans 500 GB across the whole history.

The team adds two habits. First, it compacts the small files into 120 files of 100 MB each, which is still 12,000 MB in total, but far fewer files to open. Second, it partitions by date, so the daily report reads only the last 30 days instead of the full history, scanning 40 GB instead of 500 GB, which is 12.5 times less data.

The report that took 40 minutes now takes 6 minutes. Nothing about the data changed; only the layout did. That is the point of these practices: most lakehouse speed problems are layout problems, not hardware problems.

What are the common mistakes?

The most common mistakes are treating the lakehouse as a dumping ground, skipping quality checks, and letting access rules drift. Each one is easy to start and expensive to fix later, because bad data and bad access spread to every team that uses the platform.

  • No table format decision. Mixed formats mean mixed behaviour and constant confusion.
  • Over-partitioning. Thousands of tiny folders slow queries more than no partitions at all.
  • Quality checks as an afterthought. Bad data that reaches analysts gets quoted before anyone notices.
  • Open access to raw data. Personal data in raw files is still personal data.
  • Skipping compaction. Small files accumulate until every query pays the price.
  • No owner per table. A table nobody owns is a table nobody fixes when it breaks.

Key takeaways

  • One table format everywhere beats the best format used inconsistently
  • Partition for the queries you actually run, not by habit
  • Quality checks in the pipeline stop bad data before analysts see it
  • Govern a lakehouse like a warehouse, even though the data sits in files
  • Most lakehouse speed problems are layout problems, not hardware problems

Frequently asked questions

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

A warehouse stores data in its own closed format, while a lakehouse stores raw data in open file formats and adds warehouse-style structure on top. The lakehouse lets analytics and machine learning query the same data without copying it, and it usually costs less to store.

Which table format should I choose?

Delta Lake, Apache Iceberg and Apache Hudi are the common choices, and all three work well. Pick the one your team knows and your query engine supports best, then use it for every table. The discipline of one format matters more than the choice itself.

How often should I compact small files?

Compact on a schedule that matches your load pattern: daily for tables that load daily, weekly for slower ones. The goal is files of tens to hundreds of megabytes, not thousands of tiny files. Watch query times; when they creep up, compaction is usually overdue.

Do I need data quality checks for every table?

Start with the tables other teams depend on, and give each five checks: row count, duplicate keys, unexpected nulls, date ranges and freshness. Add checks to the rest as you go. A table nobody checks is a table whose failures you will discover from an angry analyst.

How do I control access in a lakehouse?

Use roles per team, mask personal data at the column level, and keep an audit log of reads. Separate raw, cleaned and curated zones, and give most teams access only to the curated zone. Review the roles every quarter and remove what is no longer needed.

When does a lakehouse not fit?

A lakehouse fits less well when you need very low-latency reads for a live application, or when your team is tiny and a managed warehouse is simpler to run. If your queries are all small and your data is modest, the extra moving parts of a lakehouse may cost more than they save.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Running a lakehouse that is getting slow or messy? Talk to Hertiv.

A senior engineer replies within one business day. Or see our Data Engineering service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call