Question: What are the modes that an optimizer can create and describe query optimization? ANS: See the 'Rationale' field for sample responses. REJ: Query optimization is
What are the modes that an optimizer can create and describe query optimization? ANS: See the 'Rationale' field for sample responses.
REJ: Query optimization is the central activity during the parsing phase in query processing. In this phase, the DBMS must choose what indexes to use, how to perform join operations, which table to use first, and so on Each DBMS has its own algorithms for determining the most efficient way to access the data. The query optimizer can operate in one of two modes: A rulebased optimizer uses preset rules and points to determine the best approach to execute a query. The rules assign a "fixed cost" to each SQL operation; the costs are then added to yield the cost of the execution plan. For example, a full table scan has a set cost of while a table accessed by row ID has a set cost of A costbased optimizer uses sophisticated algorithms based on statistics about the objects being accessed to determine the best approach to execute a query. In this case, the optimizer process adds up the processing cost, the IO costs, and the resource costs RAM and temporary space to determine the total cost of a given execution plan.
LO: : Differentiate between a rulebased optimizer and a costbased optimizer:
AHead: Optimizer Choices
Bloom's: Remember
metadata
Your management team wants to know why they need to optimize a DBMS with SQL performance tuning, even though they automatically optimize SQL queries.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
