Window Functions vs Subqueries in SQL: When to Use Each
A running total or rank within a group used to mean a slow, hard-to-read subquery. Here’s window functions vs subqueries in SQL, and when each actually fits.
Read more →Notes on data engineering, AI and building things end to end.
A running total or rank within a group used to mean a slow, hard-to-read subquery. Here’s window functions vs subqueries in SQL, and when each actually fits.
Read more →
When a dimension attribute changes, do you overwrite it or keep history? Here’s slowly changing dimensions type 1 vs type 2, and why the choice affects historical reports.
Read more →
A failed pipeline gets rerun, and now rows exist twice. Here’s why idempotent data pipelines matter and the patterns that actually prevent duplication.
Read more →
A source system changes a field, and pipelines downstream break silently. Here’s what data contracts in data engineering actually cover, and how automated tests relate.
Read more →
“Works on my machine” usually traces back to an unpinned dependency. Here’s why a reproducible python environment for machine learning matters, and how to actually build one.
Read more →
Both can transform data. Here’s how to actually choose between SQL and Python for data transformation, with real project examples of each done right.
Read more →
A recommender returns a ranked list, not a single prediction. Here’s how precision at K and recall at K evaluate that differently from standard metrics, with a real project example.
Read more →
“Should I collect more data, or is my model the problem?” Here’s how to read a learning curve in machine learning to actually answer that, with real project examples.
Read more →
A 0.9 probability should mean right 90% of the time. Here’s what model calibration in machine learning actually checks, how to fix it, and a real project example.
Read more →
The same model can often serve either pattern. Here’s how to choose between batch vs real-time inference, with real project examples of each.
Read more →