Skip to content

Zero-Waste observability: why DataLoris never copies your rows

When I started building DataLoris, the first design question was not “which checks?” but “where does the data go?”. Many data quality tools begin by extracting tables, or samples of them, into their own storage, then compute statistics there. That works, but it means a second copy of your data, a bigger security review, and an egress bill that grows with your tables.

DataLoris takes the opposite approach. I call it Zero-Waste: compute where the data already lives, and move only the result.

A data quality rule is a question about a table: how many rows arrived?, how many customer_id values are null?, are there duplicate order ids? Every one of those questions has an aggregate answer: a number.

So instead of reading rows, the DataLoris worker turns your rules into aggregate SQL and runs it in your warehouse. Rules on the same table that share the same filters are batched into a single statement. For three rules on an orders table, the PostgreSQL query looks roughly like this:

-- Row count, null check on customer_id, uniqueness of order_id: one scan, three numbers
SELECT
COUNT(*),
COUNT(*) FILTER (WHERE "customer_id" IS NULL),
COUNT(DISTINCT "order_id")
FROM "public"."orders";

What comes back is three integers. DataLoris compares them with your thresholds (for example “at least 1 row”, “null rate at most 1%”, “no duplicates”), stores the measured values and the outcome, and that is all: there were never any rows to throw away.

Some checks don’t even need a scan. Schema drift reads column metadata, and table freshness reads table metadata in BigQuery or write counters in PostgreSQL.

  • Aggregate results: row counts, null rates, timestamps, schema signatures and execution timings.
  • Your configuration: suites, tables, rules and alert channels.
  • Incidents and alert delivery logs.

It never keeps rows or samples. The only values from your data that DataLoris stores are the ones you type into a rule yourself, such as the allowed values of an accepted-values check. Profiling follows the same rule: it stores null rates, distinct counts for a few key candidates and the newest timestamp, never example values or min/max of ordinary columns.

Running queries in someone else’s warehouse comes with responsibility, so each connection gets guard rails:

  • PostgreSQL sessions are read-only: every check runs in a READ ONLY transaction with a statement timeout, and each query is tagged with an application_name starting with dataloris, so your DBA can see exactly what we run.
  • BigQuery queries carry a bytes-billed cap (max_bytes_billed, which you can set per connection), custom SQL is dry-run first and must be a SELECT, and every job id starts with dataloris for easy auditing.
  • Custom SQL rules must be a single read-only statement that returns one number named violation_count.
  • Credentials are encrypted with AES-256-GCM and decrypted only by the worker, just before it connects.
  • Network guard: DataLoris refuses to connect to private, loopback or link-local addresses, so a connection cannot be pointed at internal infrastructure.

Because DataLoris moves numbers instead of tables, our side of the system stays small: one PostgreSQL database holds the configuration, the results and even the job queue. That is a large part of why the Free plan exists and why the paid plans start at $19 a month. On your side, the cost is a few aggregate queries per run, and on BigQuery you can cap it.

Zero-Waste has limits, and I’d rather name them. Checks can only use what your warehouse can compute: DataLoris can’t show you the offending rows in its own UI, because it never had them. When a rule fails, the alert tells you which table and which rule, with the measured value and the threshold. You then investigate in your own SQL client, with your own permissions. For most teams that is exactly where the investigation should happen.

If you want to see it on your own tables, the quickstart takes about ten minutes.