Dinesh/ Blog

Subject / Published lessons

data engineering

Explore the ideas, work through an example, and save a lesson to return to.

Filters · 1 active

27 articles

Recently updated first
  1. Updated ·data engineering

    The Relational Model — Tables, Keys, Normalisation

    Design keys, dependencies and historical facts; normalise worked schemas and test real SQLite constraints.

    18 min read
  2. Updated ·data engineering

    SQL Basics — SELECT, WHERE, ORDER BY, LIMIT

    Query rows safely with explicit NULL, alias, ordering and pagination semantics, verified against exact SQLite results.

    16 min read
  3. Updated ·data engineering

    Joins — INNER, LEFT, RIGHT, FULL, Anti-Join

    Choose join semantics, preserve measure grain and compare physical algorithms without fan-out or NULL mistakes.

    17 min read
  4. Updated ·data engineering

    Aggregations — GROUP BY, HAVING, Subqueries

    Compute honest grouped metrics, exact medians and weighted rollups; distinguish missing populations and approximation contracts.

    16 min read
  5. Updated ·data engineering

    Window Functions — the Game-Changer

    Rank deterministically, reason about peers and frames, and compute calendar-aware deltas and session boundaries.

    17 min read
  6. Updated ·data engineering

    CTEs & Recursive Queries

    Compose named SQL stages and safely traverse graphs with explicit cycle, reachability and truncation semantics.

    17 min read
  7. Updated ·data engineering

    Indexes — B-Tree Intuition, When to Add

    Design and validate query-driven indexes; distinguish access paths, output work, visibility and concurrent-build safety.

    16 min read
  8. Updated ·data engineering

    Transactions & ACID — Isolation Levels, MVCC

    Protect transaction invariants with precise isolation, retry and durability contracts; test local rollback and bounded anomaly models.

    18 min read
  9. Updated ·data engineering

    Query Planning — EXPLAIN, Execution Plans, Tuning

    Read PostgreSQL plan nodes and per-loop accounting; distinguish row estimates, buffers and output work from measured SQLite access paths.

    20 min read
  10. Updated ·data engineering

    NoSQL Landscape — KV, Document, Column, Graph

    Compare key-value, document, wide-column and graph access models with query-specific consistency, indexing and traversal contracts.

    20 min read
  11. Updated ·data engineering

    Data Modelling — Dimensional, Data Vault, OBT

    Define fact grain, design star schemas and model historical dimensions with explicit keys, interval validity and Type 6 current-value semantics.

    20 min read
  12. Updated ·data engineering

    Batch vs Streaming — Mental Model & Use Cases

    Choose bounded or unbounded processing using freshness, event-time progress, late-data handling and consistent recovery contracts.

    20 min read
  13. Updated ·data engineering

    Spark — RDD, DataFrame, Jobs/Stages/Shuffles

    Trace Spark plans through jobs, stages, tasks and exchanges; reason about dependencies, skew, broadcast and driver-memory limits.

    20 min read
  14. Updated ·data engineering

    Kafka — Topics, Partitions, Consumer Groups

    Reason about partition ordering, replication acknowledgements, consumer offsets and transactional effects without assuming end-to-end exactly-once behavior.

    20 min read
  15. Updated ·data engineering

    Stream Processing — Watermarks, Windows, Exactly-Once

    Define event time, windows, progress and state cleanup; preserve timestamp meaning and specify atomic sink effects and replay boundaries.

    20 min read
  16. Updated ·data engineering

    dbt — Models, Tests, Docs, Warehouse-Native ELT

    Structure staging, intermediate and mart models with explicit grain; Use ref, source, macros and generic/singular test contracts; Choose materialisations and reconcile late changes, updates and deletes.

    20 min read
  17. Updated ·data engineering

    Lakehouse — Delta / Iceberg / Hudi, ACID on Files

    Explain atomic snapshot membership and validated commit retries; Trace Delta versions and distinguish compaction from retention; Compare Delta, Iceberg and Hudi compatibility and maintenance.

    20 min read
  18. Updated ·data engineering

    Data Quality — Freshness, Volume, Schema, Distribution

    Check eligible freshness, volume, schema, validity and distribution; Distinguish unknown checks from passing data and route by consequence; Design consumer-specific publication gates and seasonal baselines.

    20 min read
  19. Updated ·data engineering

    Governance & Cost — Lineage, PII, Attribution

    Trace column dependencies and enforce classification separately; Reconcile direct, shared and unallocated cost against a declared total; Design justified retention and verifiable authorised erasure workflows.

    20 min read
  20. Updated ·data engineering

    Apache Airflow - open source orchestration engine

    Design retry-safe Airflow tasks without mistaking DAG ordering for a database transaction. A source-bounded lesson with worked reasoning, failure analysis and explicit runtime limitations.

    19 min read
  21. Updated ·data engineering

    Data Infrastructure for AI and Experimentation at Scale

    Trace events, time-valid features, recommendation decisions and experiment outcomes through a source-reviewed data platform with executable SQL and statistical fixtures.

    55 min read
  22. Updated ·data engineering

    Overall Engineering Clarity — Data, Distributed Systems and AI (Deep Dive)

    Trace compute, commit, indexing and authorization boundaries across a data/AI platform. Mechanisms, worked examples, failure analysis and complete practice answers.

    119 min read
  23. Updated ·data engineering

    Data Platform & Orchestration

    A data platform is a chain of independently testable contracts. A source-bounded lesson with worked reasoning, failure analysis and explicit runtime limitations.

    8 min read
  24. Updated ·data engineering

    Designing for Scale · Real-Time Analytics

    Provisional and final aggregates must agree on ownership. A source-bounded lesson with worked reasoning, failure analysis and explicit runtime limitations.

    9 min read
  25. Updated ·data engineering

    Designing for Scale · Change Data Capture (CDC)

    Build CDC and transactional-outbox reasoning around coordinated snapshots, durable intent, replay identity, schema evolution and WAL retention.

    12 min read
  26. Updated ·data engineering

    Designing for Scale · The Data Lakehouse

    Explain atomic table snapshots over immutable files, writer conflicts, row deletes, schema identity, maintenance and measured architecture trade-offs.

    12 min read
  27. Updated ·data engineering

    Orchestration — Airflow, DAGs, Retries, Backfills

    Orchestration coordinates dependencies, scheduling, retries and historical runs. It does not make arbitrary writes atomic or correct. This lesson targets **Airflow 2.10.5** and preserves the full daily-order pipeline, sensor, retr

    20 min read