Skip to content

Tags

#data-engineering

Posts tagged #data-engineering on Dynamo Geeks: 7 posts from the community, most useful first.

7 posts

Posts tagged #data-engineering

  1. Question

    Airflow catchup ran 400 DAG runs at once and killed our warehouse, how to prevent this?

    Deployed new DAG yesterday with start_date=datetime(2025, 9, 1) and schedule='@daily' . Did not set catchup. Airflow scheduled ~400 runs for all past days, they start in parallel and warehouse queue full for 2 hours, other team jobs stuck. Very embarrassing. with DAG( dag_id='orders_daily_snapshot', start_date=datetime(2025, 9, 1), schedule='@daily', ) as dag: ... I paused the DAG and marked the runs failed…

    Lin Wei2likes3comments

  2. Article

    Why finance and marketing never agree on revenue (checklist from 6 months of pain)

    Every month same meeting. Marketing dashboard say revenue X, finance report say Y, difference 4-8%, and data team (me) is asked to explain. After 6 months I made a checklist. Sharing in case it help someone. Where the numbers split Gross vs net. Marketing count order value at checkout. Finance count after cancellations, refunds and returns. Biggest gap is always this one. Which date. Order date, payment date,…

    Lin Wei4likes3comments

  3. Article

    Reconciliation without losing your mind: matching ledger, gateway and bank

    If you move money, at some point finance will ask "does our ledger match the bank". The honest answer at most startups is "mostly". This post is how we went from "mostly" to a daily report that finance actually trusts. It took us around 4 months, so dont feel bad if yours is still a spreadsheet. Three sources, not two For card and UPI payments you have three views of the same money: Your ledger: what you think…

    Arjun Mehta7likes4comments

  4. Question

    Storing high-frequency meter data: plain Postgres, TimescaleDB, or something else?

    We are getting more charger and meter data than our current setup was designed for. Right now it is about 40,000 devices sending a reading every 15 seconds, so roughly 230 million rows per day, into a single Postgres table with a B-tree index on (device_id, ts) . Inserts are still fine, but queries over a week for one site are getting slow and the table is huge. Typical queries: last 24 hours for one device, at full…

    Emma Lindqvist2likes3comments

  5. Question

    Pandera, Great Expectations or plain asserts for data validation in a small team?

    Hola! Small data team (3 people), Python, pandas, some dbt, Airflow. We have zero data validation, and last month a supplier changed a column from euros to cents without telling anybody. Our revenue dashboard showed 100x for two days 🙃 Nobody noticed until the CFO was very happy, and then very angry. I want to add validation at the ingestion step. The options I see: pandera : schemas in Python, looks light. Great…

    Núria Puig13likes6comments

  6. Question

    latest row per customer without a correlated subquery that takes 40 minutes?

    doing a take-home for a data engineering role (job hunt day 187, grand, all grand). table is basically: customer_events ( id bigint primary key, customer_id bigint, event_type text, payload jsonb, created_at timestamptz ) about 120M rows in their description, i've a 5M sample locally. they want the latest event per customer. my first go: SELECT e.* FROM customer_events e WHERE e.created_at = ( SELECT MAX(created_at)…

    Aoife Brennan13likes10comments

  7. Question

    dbt incremental model getting duplicate rows when late data arrive, how to fix?

    Using dbt on BigQuery. Orders model is incremental, source table get updated when order status change (paid, shipped, refunded). Model look like this: {{ config(materialized='incremental') }} select order_id, status, amount, updated_at from {{ source('shop', 'orders') }} {% if is_incremental() %} where updated_at > (select max(updated_at) from {{ this }}) {% endif %} Problem 1: same order_id appear multiple times…

    Lin Wei2likes3comments

Get the best of Dynamo Geeks weekly

One email each Monday with the most useful posts. No spam; unsubscribe in one click.