Query Processing Pipeline
Steps:
- Translating SQL to Relational Algebra
- Logical Query Plan Optimization
- finding cheaper equivalent expression:
- translating to Conjunctive Query and simplifying it
- applying some heuristics (pushing selections and projections, etc)
- Physical Query Plan Optimization
- doing the cost-based assignment of physical operators
- assigning each node of Logical Query Plan a physical operator
- for that need to know statistics from Database System Catalog
- execution engine - for that important things are: