TY - JOUR
T1 - Generating optimal DAG-structured query evaluation plans
AU - Neumann, Thomas
AU - Moerkotte, Guido
PY - 2009/10
Y1 - 2009/10
N2 - In many database queries relations are access multiple times during query processing. In these cases query processing can be accelerated by sharing scan operators and possibly other operators based upon the common relations. The standard approach to achieve sharing works as follows. In a first phase, a non-shared tree-shaped plan is generated via a traditional plan generator. In a second phase, common instances of a scan are detected and shared. After that, other possible operators are shared. The result is an operator DAG (directed acyclic graph). The limitation of this approach is obvious. As sharing influences plan costs, a separation of the optimization into two phases comprises the danger of missing the optimal plan, since the first optimization phase does not know about sharing. We remedy this situation by (1) introducing a general framework for reasoning about sharing and (2) sketching how this framework can be integrated into a plan generator, which then constructs optimal DAG-structured query evaluation plans.
AB - In many database queries relations are access multiple times during query processing. In these cases query processing can be accelerated by sharing scan operators and possibly other operators based upon the common relations. The standard approach to achieve sharing works as follows. In a first phase, a non-shared tree-shaped plan is generated via a traditional plan generator. In a second phase, common instances of a scan are detected and shared. After that, other possible operators are shared. The result is an operator DAG (directed acyclic graph). The limitation of this approach is obvious. As sharing influences plan costs, a separation of the optimization into two phases comprises the danger of missing the optimal plan, since the first optimization phase does not know about sharing. We remedy this situation by (1) introducing a general framework for reasoning about sharing and (2) sketching how this framework can be integrated into a plan generator, which then constructs optimal DAG-structured query evaluation plans.
UR - http://www.scopus.com/inward/record.url?scp=70349425856&partnerID=8YFLogxK
U2 - 10.1007/s00450-009-0061-0
DO - 10.1007/s00450-009-0061-0
M3 - Article
AN - SCOPUS:70349425856
SN - 1865-2034
VL - 24
SP - 103
EP - 117
JO - Computer Science - Research and Development
JF - Computer Science - Research and Development
IS - 3
ER -