130 likes | 140 Views
This chapter explores algorithms for processing and optimizing SQL queries, including translating queries into relational algebra, external sorting, implementing SELECT and JOIN operations, and using heuristics for query optimization. It also covers implementing aggregate operations, outer joins, and combining operations using pipelining.
E N D
Chapter 15 Algorithms for Query Processing and Optimization
Algorithms for SELECT and JOIN Operations • Implementing the SELECT Operation • Implementing the JOIN Operation
Implementing Aggregate Operations and Outer Joins • Implementing Aggregate Operations • Implementing Outer Join
Using Heuristics in Query Optimization • Notation for Query Trees and Query Graphs • Heuristic Optimization of Query Trees • Converting Query Trees into Query Execution Plans
Using Selectivity and Cost Estimates in Query Optimization • Cost Components for Query Execution • Catalog Information Used in Cost Functions • Examples of Cost Functions for SELECT • Examples of Cost Functions for JOIN • Multiple Relation Queries and Join Ordering • Examples to Illustrate Cost-Based Query Optimization