admin管理员组文章数量:1660216
create_extended_stats的创建及 cardinality opt_estimate相互影响-CSDN博客https://blog.csdn/jnrjian/article/details/142438401?sharetype=blogdetail&sharerId=142438401&sharerefer=PC&sharesource=jnrjian&spm=1011.2480.3001.8118
OPT_ESTIMATE cardinality 这两个都可以控制执行计划,不是说OPT_ESTIMATE 只能在估计的结果集上进行操作,这个操作的结果也可以返回来影响执行计划。
GOAL
Goal of the document is to show how an optimizer hint can be used in a SQL statement to specify the cardinality (no.of rows) for a join operation.
Generally, CARDINALITY hint is used to specify the no.of rows for a table and not for join.
SOLUTION
OPT_ESTIMATE hint can be used to specify the cardinality (no.of rows) for the join operations as well.
Syntax:
OPT_ESTIMATE(join, (alias1,alias2), rows=n) => To specify the no.of rows for join operation
OPT_ESTIMATE(join, (alias1,alias2), scale_rows=n) => To increase or decrease (scale up/down) the n
本文标签: 顺手CardJoincardinalityOPTESTIMATE
版权声明:本文标题:调整join后的 card OPT_ESTIMATE cardinality 配置起来优化更顺手 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1729849477a1215220.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论