Query Processing

Region algebras

Region inventories: collections of named region sets

Operators

The Pat algebra

Steps in query processing

  1. Convert queries to internal representation
  2. Apply rewriting transformations
    1. convert into a canonical form
    2. eliminate redundancy
    3. improve expected cost (often using information obtained from constraints)
  3. Generate access plans
    1. map into sequences of lower-level operations
    2. augment plans with information about the physical characteristics of the database.
  1. Choose the best access plan, based on the projected cost
  2. Generate code for detailed query execution plan
  3. Execute the detailed plan

 

Node-based representation

Interval-based representation

References and related reading

Fernandez04

 

 

 

Olteanu02

 

 

 

McHugh99

 

 

 

Bruno02

DeHaan03

Zhang03

Young-Lai00b