{"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.