Database Normalization vs Denormalization: When to Use Each
Normalization stores each fact once; denormalization repeats or pre-joins data for easier reads. Here is how to choose, with a small example.
Read more →Notes on data engineering, AI and building things end to end.
Normalization stores each fact once; denormalization repeats or pre-joins data for easier reads. Here is how to choose, with a small example.
Read more →
Org charts show reporting lines, not real communication. Here is how to model people as a graph in NetworkX and read centrality and communities.
Read more →
Regularization stops a model from fitting noise by penalizing its weights. Here is how L0, L1, L2 and elastic net differ, and how to choose between them.
Read more →
dbt and DuckDB are not competing tools. dbt organizes and tests SQL transformations, and DuckDB is a database that can run them. Here is how they fit.
Read more →
A marketing data pipeline pulls ad, email and analytics exports into one clean source. Here are the steps, the pitfalls, and how to keep it reliable.
Read more →
A text embedding turns text into numbers so similar meanings sit close together. Here is how embeddings, cosine similarity and vector search work.
Read more →
Sources add, rename and retype columns without warning. Here is how to handle schema changes on purpose and catch them before they reach a dashboard.
Read more →
A join combines rows from two tables. Here is how inner, left, right, full and cross joins differ, and the three mistakes that cause wrong results.
Read more →
An A/B test compares two versions with random groups. Here is how to plan one, what a p-value really means, and how peeking and bad splits mislead.
Read more →
An index lets a database find rows without scanning the table. Here is how indexes work, what they cost, and when the database ignores them.
Read more →