Empirical Evidence of Heuristic and Cost Based Query Optimizations in Relational Databases

S. Mehta, Parmeet Kaur, P. Lodhi, O. Mishra
{"title":"Empirical Evidence of Heuristic and Cost Based Query Optimizations in Relational Databases","authors":"S. Mehta, Parmeet Kaur, P. Lodhi, O. Mishra","doi":"10.1109/IC3.2018.8530467","DOIUrl":null,"url":null,"abstract":"A SQL query may be expressed in different forms with varying execution costs; hence, it is essential to choose the best when performance is considered. There are many factors that affect the cost and performance of a query. For instance, a query on a relation without proper indexes can cause full relation scans, which in turn causes either performance or locking problems. Query asking for a relation held by another query can cause dead locks and an improperly formed query can also lead to greater complexity. In this context, the paper presents an empirical analysis of the heuristic and cost-based query optimization techniques. The execution cost of a number of queries was calculated and compared with execution plans obtained after optimization. In particular, we have experimentally checked the impact of query rewriting; the ordering of SQL joins and Select statements and replacement of joins with semi-joins. The experiments have yielded a clear insight into the effect of the mentioned optimizations.","PeriodicalId":118388,"journal":{"name":"2018 Eleventh International Conference on Contemporary Computing (IC3)","volume":"6 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2018 Eleventh International Conference on Contemporary Computing (IC3)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IC3.2018.8530467","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

A SQL query may be expressed in different forms with varying execution costs; hence, it is essential to choose the best when performance is considered. There are many factors that affect the cost and performance of a query. For instance, a query on a relation without proper indexes can cause full relation scans, which in turn causes either performance or locking problems. Query asking for a relation held by another query can cause dead locks and an improperly formed query can also lead to greater complexity. In this context, the paper presents an empirical analysis of the heuristic and cost-based query optimization techniques. The execution cost of a number of queries was calculated and compared with execution plans obtained after optimization. In particular, we have experimentally checked the impact of query rewriting; the ordering of SQL joins and Select statements and replacement of joins with semi-joins. The experiments have yielded a clear insight into the effect of the mentioned optimizations.
关系型数据库中启发式和基于成本的查询优化的经验证据
SQL查询可能以不同的形式表示,其执行成本也不同;因此,在考虑性能时,选择最好的是必要的。有许多因素会影响查询的成本和性能。例如,对没有适当索引的关系进行查询可能会导致完整的关系扫描,从而导致性能或锁定问题。请求由另一个查询持有的关系的查询可能会导致死锁,而格式不正确的查询也可能导致更大的复杂性。在此背景下,本文对启发式和基于成本的查询优化技术进行了实证分析。计算了多个查询的执行成本,并与优化后得到的执行计划进行了比较。特别是,我们通过实验检查了查询重写的影响;SQL连接和Select语句的排序以及用半连接替换连接。实验对上述优化的效果有了清晰的认识。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信