Database Systems: Query Processing & Optimization by Ling Liu, Georgia Tech, Study notes of Computer Science

A set of lecture notes for cs 4420 database system implementation course at georgia tech, focusing on query processing and optimization. The notes cover topics such as query processing phases, relational query optimization, and various heuristics for good transformations. The professor is ling liu.

Typology: Study notes

Pre 2010

Uploaded on 08/05/2009

koofers-user-pcf
koofers-user-pcf 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
DB09 Introduction
Prepared by Ling Liu
CS 4420 Database System Implementation
Query Processing
and Query Optimization
Ling Liu
Associate Professor
College of Computing, Georgia Tech
2
DB09 Introduction
Prepared by Ling Liu
Lecture Outline
Review of Last Lecture:
zSummary of Multi-dimensional Indexing Techniques
zQuery Processing (Part I)
ÆQuery Processing Steps
ÆAlgebraic Transformation & Logical Query Plans
Today’s Lecture
zQuery Processing (cont)
ÆAlgebraic Based Optimization
)Good transformations
ÆCost-based Query Optimization
)Intermediate Result Estimation
)I/O Blocks Estimation
pf2

Partial preview of the text

Download Database Systems: Query Processing & Optimization by Ling Liu, Georgia Tech and more Study notes Computer Science in PDF only on Docsity!

1

DB09 (^) Introduction

Prepared by Ling Liu

CS 4420 Database System Implementation

Query Processing

and Query Optimization

Ling Liu Associate Professor College of Computing, Georgia Tech

2

DB09 (^) Introduction

Prepared by Ling Liu

Lecture Outline

„ Review of Last Lecture: z Summary of Multi-dimensional Indexing Techniques

z Query Processing (Part I) Æ Query Processing Steps Æ Algebraic Transformation & Logical Query Plans

„ Today’s Lecture

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

„ Relational algebra level

z Algebraic transformations z good transformations

„ Detailed query plan level

z estimate costs (intermediate results size, I/O blocks) z generate and compare plans

4

DB09 (^) Introduction

Prepared by Ling Liu

Relational Query Optimization

„ Relational algebra level

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

„ Physical (Executable) query plan level

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