- 1、本文档共69页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Chapter 14: Query Optimization Chapter 14: Query Optimization Introduction Transformation of Relational Expressions Catalog Information for Cost Estimation Statistical Information for Cost Estimation Cost-based optimization Dynamic Programming for Choosing Evaluation Plans Materialized views Introduction Alternative ways of evaluating a given query Equivalent expressions Different algorithms for each operation Introduction (Cont.) An evaluation plan defines exactly what algorithm is used for each operation, and how the execution of the operations is coordinated. Introduction (Cont.) Cost difference between evaluation plans for a query can be enormous E.g. seconds vs. days in some cases Steps in cost-based query optimization Generate logically equivalent expressions using equivalence rules Annotate resultant expressions to get alternative query plans Choose the cheapest plan based on estimated cost Estimation of plan cost based on: Statistical information about relations. Examples: number of tuples, number of distinct values for an attribute Statistics estimation for intermediate results to compute cost of complex expressions Cost formulae for algorithms, computed using statistics Generating Equivalent Expressions Transformation of Relational Expressions Two relational algebra expressions are said to be equivalent if the two expressions generate the same set of tuples on every legal database instance Note: order of tuples is irrelevant In SQL, inputs and outputs are multisets of tuples Two expressions in the multiset version of the relational algebra are said to be equivalent if the two expressions generate the same multiset of tuples on every legal database instance. An equivalence rule says that expressions of two forms are equivalent Can replace expression of first form by second, or vice versa Equivalence Rules 1. Conjunctive selection operations can be deconstructed into a sequence of individual selections. 2. Selection operations are commutative. 3. Only
您可能关注的文档
- 施一剑《电子系统设计教学课件》电子系统设计实验报告参考模版.doc
- 施一剑《电子系统设计教学课件》实验操作步骤.pdf
- 时景璞《临床流行病学》1绪论时改whl.ppt
- 时景璞《临床流行病学》2资料收集与指标时改wxm.ppt
- 时景璞《临床流行病学》3研究原则时改zb.pptx
- 时景璞《临床流行病学》4临床医学研究常用设计方案sjp.pptx
- 时景璞《临床流行病学》7疗效时改whl.ppt
- 时景璞《临床流行病学》6诊断试验时改mb.pptx
- 时景璞《临床流行病学》5研误差和控制时改dw1.ppt
- 时景璞《临床流行病学》8预后时改zb.pptx
- 回顾当初为了谋生出仕而今感到悲哀自语文试卷讲评.pdf
- 综合学习azinci looked everywhere到处看.pdf
- 说明综合vbbbbbbb bbbbbbbbbbb谱子clocks-rock 4.pdf
- 内容案例下午environmental systems and societies paper.pdf
- 广播新闻告说2014uks增长率为2 economics济学.pdf
- ashrae美国采暖与制冷工程协会.pdf
- 参考惊人大脑zing brain lpZ1.pdf
- 文案gwd24可用于模考.pdf
- 流量分配问题在平行流动热交换器pega ashrae.pdf
- 工厂块-转换映射参考团队rad hqfactory blocks v阻止OSCV0.pdf
文档评论(0)