

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


1
DB09 (^) Introduction
Prepared by Ling Liu
Ling Liu Associate Professor College of Computing, Georgia Tech
2
DB09 (^) Introduction
Prepared by Ling Liu
Review of Last Lecture: z Summary of Multi-dimensional Indexing Techniques
z Query Processing (Part I) Æ Query Processing Steps Æ Algebraic Transformation & Logical Query Plans
z Query Processing (cont) ÆAlgebraic Based Optimization ) Good transformations ÆCost-based Query Optimization )Intermediate Result Estimation )I/O Blocks Estimation
3
DB09 (^) Introduction
Prepared by Ling Liu
Query Processing Phases
z Algebraic transformations z good transformations
z estimate costs (intermediate results size, I/O blocks) z generate and compare plans
4
DB09 (^) Introduction
Prepared by Ling Liu
Relational Query Optimization
z Using Heuristics for good transformations to reduce the search space of local query plans z Typical Heuristics Æ Push Selection and Projection closer to the base relations in a SQL query tree. Æ Reduce intermediate result size as much as possible
z Consider various indexes and their performance characteristics when estimating costs of alternative query plans z Pick the most economical physical query plan for query execution