/ Learning note
I ran my loader twice. Here’s what that proves, and what it doesn’t.
Rerunning a loader is a good check, but it proves less than I first assumed: it rules out duplicates, not stale records.
What I tried
I ran the Orders Data Pipeline loaders twice against the same local SQLite database. Each table has a primary key and uses INSERT OR IGNORE. After the second run the tables still held 5 orders and 3 customers.
What it proves
Repeated inserts didn’t duplicate the sample records. That’s good evidence that rerunning with identical input is safe. It’s a narrow result, though: it doesn’t show recovery from every kind of failure.
What it doesn’t
The code ignores conflicts instead of updating them. If an existing order ID comes back with a changed amount, the original row stays as it was. Avoiding duplicates and handling changes are two different things, and they need two different checks.
What I’ll try next
Add a fixture that changes one existing order and adds one new one. Compare INSERT OR IGNORE with an explicit upsert, then check both the row counts and the values. This follow-up is planned; it isn’t in the repository yet.
Evidence
A local sample run on September 12, 2026, using the repository scripts. The linked project has the commands to reproduce it, and its current limitations.
Sources and evidence
- https://github.com/pruthviiraj/data-engineering-mini-projects/blob/main/order-data-pipeline/src/reports.py
- https://github.com/pruthviiraj/data-engineering-mini-projects/tree/main/order-data-pipeline