Which Side Is Small Enough
Concepts covered: paBroadcastJoin
The broadcast trade is network for memory: you avoid shuffling the big table by making every executor hold the entire small one. So the operative question about the small side is not how many rows it has but whether a full copy sits comfortably in one executor's memory next to everything else that executor is doing: shuffle buffers, cached data, the tasks themselves. If the answer is comfortably yes, on every executor, with room to spare after the hash-map form inflates it, broadcast is on the table. If you have to squint, it is not. The reliable instinct is to think in categories of tables, not bytes. Lookup and dimension tables describe a bounded world: countries, currencies, product catalogs, store locations, status codes. They are small because reality is small, and they grow slowly if
About This Interactive Section
This section is part of the Joins: Beginner lesson on DataDriven, a free data engineering interview prep platform. Each section includes explanations, worked examples, and hands-on code challenges that execute in real time. SQL queries run against a live database. Python runs in a sandboxed Docker container. Data modeling problems validate against interactive schema canvases. All content is framed around what data engineering interviewers actually test at companies like Meta, Google, Amazon, Netflix, Stripe, and Databricks.
How DataDriven Lessons Work
DataDriven combines four interview rounds (SQL, Python, Data Modeling, Pipeline Architecture) with adaptive difficulty and spaced repetition. Easy problems get harder as you improve. Weak concepts resurface until you master them. Your readiness score tracks progress across every topic interviewers test. Every lesson section ends with problems you solve by writing and running real code, not by picking multiple-choice answers.