Skip to the workspace
Pebellslearn by building
The Data Engineering Lifecycle  ›  Lesson

Data Ingestion

Data Ingestion 12 minIngestion moves data from sources into the platform, either pulled or pushed and either as a full copy or incrementally from a saved watermark.

data engineer / Data Ingestion

Explore each scene at your own pace.

01 · The rule

The rule

Data Ingestion

Every night PedalCity must bring yesterday's rides, the station list, payment records and dock readings into its data platform. Copying all 15 million rides every night would be slow and wasteful. Copying only new rows would miss the rides that were updated. Ingestion is where these decisions are made.

The rule

Ingestion moves data in: decide push or pull, full or incremental.

Pull or push: who starts the transfer?

  • Pull: your pipeline asks the source. It queries the app database or calls the weather API.
  • Push: the source sends data as it happens. Dock sensors post each reading to an endpoint, or the payment provider calls a webhook.

Full or incremental: how much do you copy?

  • Full load: copy the whole dataset every time. This is simple and right for small tables. PedalCity's stations table has 120 rows, so copying all of it nightly costs nothing.
  • Incremental load: copy only what changed since the last run. To do that you keep a watermark, which is the point you reached last time.

For rides, the watermark is a timestamp. Each run takes the window between the last watermark and now:

SELECT *
FROM rides
WHERE updated_at >  '2026-09-24 02:00:00'
  AND updated_at <= '2026-09-25 02:00:00';

Two details matter. The filter uses updated_at, not created_at, because rides are updated when docked. And the window has a fixed upper bound, so the next run starts exactly where this one ended, with no gaps and no overlaps.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.