1Z0-117 · Question #71
Which statement is true about the usage of the STAR_TRANSFORMATION hint in a query?
The correct answer is A. The optimizer always uses a plan in which the transformation is used. The STAR_TRANSFORMATION hint makes the optimizer use the best plan in which the transformation has been used. Without the hint, the optimizer could make a cost-based decision to use the best plan generated without the transformation, instead of the best plan for the transformed…
Question
Which statement is true about the usage of the STAR_TRANSFORMATION hint in a query?
Options
- AThe optimizer always uses a plan in which the transformation is used.
- BThe optimizer uses transformation only if the cost is less than a query executing without transformation.
- CThe optimizer always generates subqueries to transform a query.
- DThe optimizer always uses bitmap indexes on the primary key column for any dimension table to transform
How the community answered
(21 responses)- A71% (15)
- B5% (1)
- C10% (2)
- D14% (3)
Explanation
The STAR_TRANSFORMATION hint makes the optimizer use the best plan in which the transformation has been used. Without the hint, the optimizer could make a cost-based decision to use the best plan generated without the transformation, instead of the best plan for the transformed query. Even if the hint is given, there is no guarantee that the transformation will take place. The optimizer only generates the subqueries if it seems reasonable to do so. If no subqueries are generated, then there is no transformed query, and the best plan for the untransformed query is used, regardless of the hint.
Topics
Community Discussion
No community discussion yet for this question.