







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!








๏ Query optimization ๏ (^) Techniques of query optimization ๏ (^) Query optimizer ๏ (^) Query and query plan ๏ (^) SQL ๏ SQL server ๏ (^) Example ๏ importance
๏ There are multiple ways of executing a query known as execution strategy ๏ (^) Different execution strategy can have different cost ๏ (^) It is the responsibility of the query optimizer to choose least costly execution strategy
๏ The main aim of the query optimization to transform input query into faster equivalent query ๏ (^) There are two techniques of implementing query optimization
๏ The heuristic query optimizer simply apply these rules without finding out weather cost is reduced by this transformation ๏ It is based on query tree
๏ The heuristic rules are used as an optimization techniques to modify the internal representation of the query ๏ (^) Heuristic optimization transform the query tree by using the set of rules that Typically (but not in all cases) improve execution performance of the query
๏ Size of files resulting from a binary operation like join is very large ๏ (^) Heuristic query optimizer transform the initial query tree into final query tree
๏ The query optimizer attempt to determine the most efficient way to execute a given query by considering the possible query plan
๏ Time is money ๏ (^) Queries are faster ๏ (^) Help everyone who uses the server ๏ (^) Different performance improvement with different database engine and schemas