Open Source Linux
May 5, 2023 · Databases
Mastering Subquery Unnesting: Turn Correlated Queries into Fast Joins
This article explains why correlated subqueries are a performance bottleneck, introduces the Apply (Correlated Join) operator and a systematic set of transformation rules that push Apply down and replace subqueries with efficient joins, covering scalar, existential, and quantified subqueries, aggregation handling, and set operations, all illustrated with TPC‑H examples.
Apply OperatorDatabase EnginesDecorrelate
0 likes · 17 min read
