Query Processing and Optimisation - Intr
Query Processing and Optimisation - Intr
Query Processing and Optimisation - Intr
http://www.beatsigner.com
2 December 2005
Context of Today's Lecture
Programmers Users DB Admins
Application Database
Queries
Programs Schema
DBMS
DML Query DDL
Preprocessor Compiler Compiler
Transaction
Scheduler
Manager
Data
Manager Buffer Recovery
Manager Manager
Database
Manager
Access File
Methods Manager
Query
Query Query Plan
Compiler
Query Catalogue
Optimiser Manager
statistics
Data Manager
Database
use status s
⋈ bitmap index status="open"
Other optimisations
if the join attributes in a natural join or an equi-join form a
candidate key on the inner relation, the inner loop can terminate
on the first match
scan inner loop alternately forward and backward
- buffered data from previous scan can be reused
Hash join
uses a hash function to partition the tuples of the relations r and s
based on the join attributes
details about hash and merge join can be found in the book
order customer
2 December 2005