QuestionQ39

VerifiedTuning SQL Statements

Examine the following execution plan:

Question Image

Access to which table triggers query reoptimization?

Explanation

Automatic reoptimization uses statistics feedback when actual cardinality differs significantly from the optimizer’s estimate. The SALES index/table access is estimated at 10 rows but returns 918K rows, whereas the TIMES and PRODUCTS estimates match their actual row counts and CUSTOMERS differs only modestly. This major SALES cardinality misestimate causes the query to be reoptimized on a later execution.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!