- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
MultiQuery Optimization多查询优化
Multi-Query Optimization Prasan Roy Indian Institute of Technology - Bombay Overview Multi-Query Optimization: What? Problem statement Multi-Query Optimization: Why? Application scenarios Multi-Query Optimization: How? A cost-based practical approach Prototyping Multi-Query Optimization On MS SQL-Server at Microsoft Research prototype at IIT-Bombay Multi-Query Optimization: What? Exploit common subexpressions (CSEs) in query optimization Consider DAG execution plans in addition to tree execution plans Example Example (contd) Alternative: Multi-Query Optimization: Why? Queries on views, nested queries, … Overlapping query batches generated by applications Update expressions for materialized views Query invocations with different parameters . . . Multi-Query Optimization: How? Set up the search space Identify the common subexpressions Explore the search space efficiently Find the best way to exploit the common subexpressions Problems Materializing and sharing a CSE not necessarily cheaper Mutually exclusive alternatives (A JOIN B JOIN C) (B JOIN C JOIN D) (C JOIN D JOIN E) What to share: (B JOIN C) or (C JOIN D) ? Earlier Work: Practical Solutions As early as 1976 Preprocess query before optimization [Hall, IBM-JRD76] As late as 1998 Postprocess optimized plans [Subramanium and Venkataraman, SIGMOD98] Earlier Work: Theoretical Studies [Sellis, TODS88], [Cosar et al., CIKM93], [Shim et al., DKE94],... Set of queries {Q1, Q2, …, Qn} For each query Qi, set of execution plans {Pi1, Pi2, …, Pim} Pij is a set of tasks from a common pool Pick a plan for each query such that the cost of tasks in the union is minimized Microsoft Experience with Paul Larson, Microsoft Research Prototyping MQO on SQL-Server Add multi-query optimization capability to SQL-Server Well integrated with the existing optimization framework another optimization level minimal changes, minimal extra lines of code First cut: exhaustive How slow can i
您可能关注的文档
- Milwaukee’s Community Development Block Grant 密尔市社区发展资助.ppt
- Millennium Medical Billing千年医疗帐单.ppt
- Millimetre Astronomy with the Australia Telescopemillimetre with the澳大利亚天文望远镜.ppt
- Mind Your Pricing Cues Oregon State University记你的定价线索俄勒冈州立大学.ppt
- MIMN Charity Partners Meetpiemimn慈善合作伙伴 meetpie.ppt
- MindReader Querying databases through multiple examples摸透别人的心思查询数据库通过多个实例.ppt
- Mindful Dialogue Academi Walesmindful对话美国威尔士.ppt
- MINERALS Angelfire矿物 AngelFire.ppt
- Minerals I Love Science矿物我爱科学.ppt
- Mindset the new psychology of success Terry Michler思维的新的成功心理学特里米.ppt
原创力文档


文档评论(0)