Outline: Multidatabase Query Processing
Outline: Multidatabase Query Processing
• Introduction
• Background
• Distributed Database Design
• Database Integration
• Semantic Data Control
• Distributed Query Processing
• Multidatabase Query Processing
➡ Query Rewriting
➡ Optimization Issues
• Design autonomy
➡ The ability to restrict the availability and accuracy of information needed for
query optimization
➡ How to obtain cost information?
• Execution autonomy
➡ The ability to execute queries in unpredictable ways
➡ How to adapt to this?
• Object model
➡ Complex (graphs) and regular data structures
➡ Mandatory schema
Allocation and
capabilities
Local/DBMS
mappings
Q(ename,title,pname) :- Emp(ename,title,-)
Asg(ename,pname,-),
title = “Programmer”.
Q(ename,title,pname) :- Emp(ename,title,-)
Asg(ename,pname,24).
Step 2
➡ For each view V of the Cartesian product of the buckets, produce a
conjunctive query
✦ If it is contained in Q, keep it
• The rewritten query is a union of conjunctive queries
• Algorithm
➡ Iterative improvement of the initial left-linear tree by moving down subtrees
while response time is improved
➡ w1 .db2: ASG(ENO,PNAME,DUR)
➡ w2 . db3: EMPASG(ENAME,CITY,PNAME,DUR)
• Planning functions of w 1
• Adaptive reactions
➡ Change schedule
➡ Replace an operator by an equivalent one
➡ Modify the behavior of an operator
➡ Data repartitioning
Result tuples
• Uncooperative DB
➡ May place wrapper at mediator
➡ Efficient mediator-wrapper com.