- 1、本文档共54页,可阅读全部内容。
- 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 13: Query Processing Chapter 13: Query Processing Overview Measures of Query Cost Selection Operation Sorting Join Operation Other Operations Evaluation of Expressions Basic Steps in Query Processing 1. Parsing and translation 2. Optimization 3. Evaluation Basic Steps in Query Processing (Cont.) Parsing and translation translate the query into its internal form. This is then translated into relational algebra. Parser checks syntax, verifies relations Evaluation The query-execution engine takes a query-evaluation plan, executes that plan, and returns the answers to the query. Basic Steps in Query Processing : Optimization A relational algebra expression may have many equivalent expressions E.g., ?balance?2500(?balance(account)) is equivalent to ?balance(?balance?2500(account)) Each relational algebra operation can be evaluated using one of several different algorithms Correspondingly, a relational-algebra expression can be evaluated in many ways. Annotated expression specifying detailed evaluation strategy is called an evaluation-plan. E.g., can use an index on balance to find accounts with balance 2500, or can perform complete relation scan and discard accounts with balance ? 2500 Basic Steps: Optimization (Cont.) Query Optimization: Amongst all equivalent evaluation plans choose the one with lowest cost. Cost is estimated using statistical information from the database catalog e.g. number of tuples in each relation, size of tuples, etc. In this chapter we study How to measure query costs Algorithms for evaluating relational algebra operations How to combine algorithms for individual operations in order to evaluate a complete expression In Chapter 14 We study how to optimize queries, that is, how to find an evaluation plan with lowest estimated cost Measures of Query Cost Cost is generally measured as total elapsed time for answering query Many factors contribute to time cost disk accesses, CPU, or even network communication Typically
您可能关注的文档
- 施一剑《电子系统设计教学课件》电子系统设计实验报告参考模版.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
- 2022年11月陇南市直机关遴选公务员面试真题带答案详解.docx
- 2022年11月荣昌县直机关遴选公务员面试真题附详解.docx
- 2022年2月淄博市直机关遴选公务员面试真题回忆版.docx
- 2022年11月青海省直机关遴选公务员面试真题带题目详解.docx
- 2022年2月海北州直机关遴选公务员面试真题带详解.docx
- 2022年11月铜梁县直机关遴选公务员面试真题附带题目详解.docx
- 2022年11月玉溪市税务系统遴选面试真题带详解.docx
- 2022年11月泸州市直遴选面试真题回忆版汇总.docx
- 2022年2月汕头市直机关遴选公务员面试真题回忆版汇总.docx
- 2022年2月垫江县直机关遴选公务员面试真题附详细解析.docx
文档评论(0)