Optimization of dynamic query evaluation plans

Traditional query optimizers assume accurate knowledge of run-time parameters such as selectivities and resource availability during plan optimization, i.e., at compile time. In reality, however, this assumption is often not justified. Therefore, the “static” plans produced by traditional optimizers...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:SIGMOD record 1994-06, Vol.23 (2), p.150-160
Hauptverfasser: Cole, Richard L., Graefe, Goetz
Format: Artikel
Sprache:eng
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page 160
container_issue 2
container_start_page 150
container_title SIGMOD record
container_volume 23
creator Cole, Richard L.
Graefe, Goetz
description Traditional query optimizers assume accurate knowledge of run-time parameters such as selectivities and resource availability during plan optimization, i.e., at compile time. In reality, however, this assumption is often not justified. Therefore, the “static” plans produced by traditional optimizers may not be optimal for many of their actual run-time invocations. Instead, we propose a novel optimization model that assigns the bulk of the optimization effort to compile-time and delays carefully selected optimization decisions until run-time. Our previous work defined the run-time primitives, “dynamic plans” using “choose-plan” operators, for executing such delayed decisions, but did not solve the problem of constructing dynamic plans at compile-time. The present paper introduces techniques that solve this problem. Experience with a working prototype optimizer demonstrates (i) that the additional optimization and start-up overhead of dynamic plans compared to static plans is dominated by their advantage at run-time, (ii) that dynamic plans are as robust as the “brute-force” remedy of run-time optimization, i.e., dynamic plans maintain their optimality even if parameters change between compile-time and run-time, and (iii) that the start-up overhead of dynamic plans is significantly less than the time required for complete optimization at run-time. In other words, our proposed techniques are superior to both techniques considered to-date, namely compile-time optimization into a single static plan as well as run-time optimization. Finally, we believe that the concepts and technology described can be transferred to commercial query optimizers in order to improve the performance of embedded queries with host variables in the query predicate and to adapt to run-time system loads unpredictable at compile time.
doi_str_mv 10.1145/191843.191872
format Article
fullrecord <record><control><sourceid>crossref</sourceid><recordid>TN_cdi_crossref_primary_10_1145_191843_191872</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>10_1145_191843_191872</sourcerecordid><originalsourceid>FETCH-LOGICAL-c3152-ad80bc73e7b1c8c2215eca06b570b3a1c9971f3fa2666defe824eec88abc2daa3</originalsourceid><addsrcrecordid>eNotzztrwzAYhWENLTRNMnb3H5CrT7IuHkvoDQJZ2ll8kiVQ8a1SUnB_fQnu9A4HDjyEPACrARr5CC2YRtTXaH5DNgyUoNIwc0fuS_liDAwotiH1aT6nIf3iOU1jNcWqW0Yckq--LyEvVfjB_rJuc49j2ZHbiH0J-_9uyefL88fhjR5Pr--HpyP1AiSn2BnmvBZBO_DGcw4yeGTKSc2cQPBtqyGKiFwp1YUYDG9C8Mag87xDFFtC11-fp1JyiHbOacC8WGD2CrQr0K5A8Qecq0WX</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Optimization of dynamic query evaluation plans</title><source>ACM Digital Library</source><creator>Cole, Richard L. ; Graefe, Goetz</creator><creatorcontrib>Cole, Richard L. ; Graefe, Goetz</creatorcontrib><description>Traditional query optimizers assume accurate knowledge of run-time parameters such as selectivities and resource availability during plan optimization, i.e., at compile time. In reality, however, this assumption is often not justified. Therefore, the “static” plans produced by traditional optimizers may not be optimal for many of their actual run-time invocations. Instead, we propose a novel optimization model that assigns the bulk of the optimization effort to compile-time and delays carefully selected optimization decisions until run-time. Our previous work defined the run-time primitives, “dynamic plans” using “choose-plan” operators, for executing such delayed decisions, but did not solve the problem of constructing dynamic plans at compile-time. The present paper introduces techniques that solve this problem. Experience with a working prototype optimizer demonstrates (i) that the additional optimization and start-up overhead of dynamic plans compared to static plans is dominated by their advantage at run-time, (ii) that dynamic plans are as robust as the “brute-force” remedy of run-time optimization, i.e., dynamic plans maintain their optimality even if parameters change between compile-time and run-time, and (iii) that the start-up overhead of dynamic plans is significantly less than the time required for complete optimization at run-time. In other words, our proposed techniques are superior to both techniques considered to-date, namely compile-time optimization into a single static plan as well as run-time optimization. Finally, we believe that the concepts and technology described can be transferred to commercial query optimizers in order to improve the performance of embedded queries with host variables in the query predicate and to adapt to run-time system loads unpredictable at compile time.</description><identifier>ISSN: 0163-5808</identifier><identifier>DOI: 10.1145/191843.191872</identifier><language>eng</language><ispartof>SIGMOD record, 1994-06, Vol.23 (2), p.150-160</ispartof><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed><citedby>FETCH-LOGICAL-c3152-ad80bc73e7b1c8c2215eca06b570b3a1c9971f3fa2666defe824eec88abc2daa3</citedby><cites>FETCH-LOGICAL-c3152-ad80bc73e7b1c8c2215eca06b570b3a1c9971f3fa2666defe824eec88abc2daa3</cites></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>315,781,785,27929,27930</link.rule.ids></links><search><creatorcontrib>Cole, Richard L.</creatorcontrib><creatorcontrib>Graefe, Goetz</creatorcontrib><title>Optimization of dynamic query evaluation plans</title><title>SIGMOD record</title><description>Traditional query optimizers assume accurate knowledge of run-time parameters such as selectivities and resource availability during plan optimization, i.e., at compile time. In reality, however, this assumption is often not justified. Therefore, the “static” plans produced by traditional optimizers may not be optimal for many of their actual run-time invocations. Instead, we propose a novel optimization model that assigns the bulk of the optimization effort to compile-time and delays carefully selected optimization decisions until run-time. Our previous work defined the run-time primitives, “dynamic plans” using “choose-plan” operators, for executing such delayed decisions, but did not solve the problem of constructing dynamic plans at compile-time. The present paper introduces techniques that solve this problem. Experience with a working prototype optimizer demonstrates (i) that the additional optimization and start-up overhead of dynamic plans compared to static plans is dominated by their advantage at run-time, (ii) that dynamic plans are as robust as the “brute-force” remedy of run-time optimization, i.e., dynamic plans maintain their optimality even if parameters change between compile-time and run-time, and (iii) that the start-up overhead of dynamic plans is significantly less than the time required for complete optimization at run-time. In other words, our proposed techniques are superior to both techniques considered to-date, namely compile-time optimization into a single static plan as well as run-time optimization. Finally, we believe that the concepts and technology described can be transferred to commercial query optimizers in order to improve the performance of embedded queries with host variables in the query predicate and to adapt to run-time system loads unpredictable at compile time.</description><issn>0163-5808</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>1994</creationdate><recordtype>article</recordtype><recordid>eNotzztrwzAYhWENLTRNMnb3H5CrT7IuHkvoDQJZ2ll8kiVQ8a1SUnB_fQnu9A4HDjyEPACrARr5CC2YRtTXaH5DNgyUoNIwc0fuS_liDAwotiH1aT6nIf3iOU1jNcWqW0Yckq--LyEvVfjB_rJuc49j2ZHbiH0J-_9uyefL88fhjR5Pr--HpyP1AiSn2BnmvBZBO_DGcw4yeGTKSc2cQPBtqyGKiFwp1YUYDG9C8Mag87xDFFtC11-fp1JyiHbOacC8WGD2CrQr0K5A8Qecq0WX</recordid><startdate>19940601</startdate><enddate>19940601</enddate><creator>Cole, Richard L.</creator><creator>Graefe, Goetz</creator><scope>AAYXX</scope><scope>CITATION</scope></search><sort><creationdate>19940601</creationdate><title>Optimization of dynamic query evaluation plans</title><author>Cole, Richard L. ; Graefe, Goetz</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-c3152-ad80bc73e7b1c8c2215eca06b570b3a1c9971f3fa2666defe824eec88abc2daa3</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>1994</creationdate><toplevel>online_resources</toplevel><creatorcontrib>Cole, Richard L.</creatorcontrib><creatorcontrib>Graefe, Goetz</creatorcontrib><collection>CrossRef</collection><jtitle>SIGMOD record</jtitle></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Cole, Richard L.</au><au>Graefe, Goetz</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Optimization of dynamic query evaluation plans</atitle><jtitle>SIGMOD record</jtitle><date>1994-06-01</date><risdate>1994</risdate><volume>23</volume><issue>2</issue><spage>150</spage><epage>160</epage><pages>150-160</pages><issn>0163-5808</issn><abstract>Traditional query optimizers assume accurate knowledge of run-time parameters such as selectivities and resource availability during plan optimization, i.e., at compile time. In reality, however, this assumption is often not justified. Therefore, the “static” plans produced by traditional optimizers may not be optimal for many of their actual run-time invocations. Instead, we propose a novel optimization model that assigns the bulk of the optimization effort to compile-time and delays carefully selected optimization decisions until run-time. Our previous work defined the run-time primitives, “dynamic plans” using “choose-plan” operators, for executing such delayed decisions, but did not solve the problem of constructing dynamic plans at compile-time. The present paper introduces techniques that solve this problem. Experience with a working prototype optimizer demonstrates (i) that the additional optimization and start-up overhead of dynamic plans compared to static plans is dominated by their advantage at run-time, (ii) that dynamic plans are as robust as the “brute-force” remedy of run-time optimization, i.e., dynamic plans maintain their optimality even if parameters change between compile-time and run-time, and (iii) that the start-up overhead of dynamic plans is significantly less than the time required for complete optimization at run-time. In other words, our proposed techniques are superior to both techniques considered to-date, namely compile-time optimization into a single static plan as well as run-time optimization. Finally, we believe that the concepts and technology described can be transferred to commercial query optimizers in order to improve the performance of embedded queries with host variables in the query predicate and to adapt to run-time system loads unpredictable at compile time.</abstract><doi>10.1145/191843.191872</doi><tpages>11</tpages><oa>free_for_read</oa></addata></record>
fulltext fulltext
identifier ISSN: 0163-5808
ispartof SIGMOD record, 1994-06, Vol.23 (2), p.150-160
issn 0163-5808
language eng
recordid cdi_crossref_primary_10_1145_191843_191872
source ACM Digital Library
title Optimization of dynamic query evaluation plans
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2024-12-15T14%3A53%3A42IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-crossref&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Optimization%20of%20dynamic%20query%20evaluation%20plans&rft.jtitle=SIGMOD%20record&rft.au=Cole,%20Richard%20L.&rft.date=1994-06-01&rft.volume=23&rft.issue=2&rft.spage=150&rft.epage=160&rft.pages=150-160&rft.issn=0163-5808&rft_id=info:doi/10.1145/191843.191872&rft_dat=%3Ccrossref%3E10_1145_191843_191872%3C/crossref%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true