If you’re reading a 400K-line production optimizer, this series gives the shortest path: task engine, memo, DP cells, rules. Read it with how to read an unfamiliar codebase.
Reading gporca
Anatomy of Greenplum's optimizer: task engine, memo, DP cells and 119 rules.
- 119 rules
- 44K lines of xforms
- 400K lines total
All posts
- Reading gporca (Part 1): Only ~11K of Its 400K Lines Are Actually Framework2026-10-20
- Reading gporca (Part 2): The Reference-Count Gate That Turns Recursive Search into a Pausable Task Network2026-10-20
- Reading gporca (Part 3): The Key of a DP Cell — (Group, Required Properties, Stage)2026-10-20
- gporca's Rule System: How to Read 119 Rules2026-10-20