电脑软硬件应用网
当前位置: 电脑软硬件应用网 > 设计学院 > 网络编程 > 数据库 > 正文
掌握card的标准含义
掌握card的标准含义
2007-11-29 12:26:13  文/72933   出处:赛迪网   

一直以来,很多人都对card的具体含义一头雾水,参考下文你就会很快得到card的标准含义。

⑴Cost The cost assigned to each step 
of the query plan by the CBO. The CBO works by
generating many different execution paths/plans 
for the same query and assigns a cost to each 
and every one. The query plan with the lowest 
cost wins. In the full outer join example,
we can see the total cost for this query is 10.
⑵Card Card is short for Cardinality. It is the 
estimated number of rows that will flow out
of a given query plan step. In the full outer j
oin example, we can see the optimizer expects
there to be 327 rows in EMP and 4 rows in DEPT.
⑶Bytes The size in bytes of the data the CBO 
expects each step of the plan to return.
This is dependent on the number of rows (Card) 
and the estimated width of the rows.

至此,我们就可以得出最标准的结论:

card是指计划中这一步所处理的行数。

注释:cost指cbo中这一步所耗费的资源,这个值是相对值。bytes指cbo中这一步所处理所有记录的字节数,是估算出来的一组值。

  • 上一篇文章:

  • 下一篇文章:
  • 最新热点 最新推荐 相关文章
    Mysql数据库名和表名在不同系统下的…
    mysql全文搜索:sql的写法
    解答SQL不许在视图定义ORDER BY子句…
    数据库海量数据查询与优化
    SQL分组实例使用GROUP BY做示例
    图解Slide Window来做SqlServer性能…
    解决附加SQL Server数据库后出现只读…
    一次SQL调优数据库性能问题后的过程
    使用sql语句分离和附加数据库的方法
    一起探讨如何改善数据库性能瓶颈问题
    关于45IT | About 45IT | 联系方式 | 版权声明 | 网站导航 |

    Copyright © 2003-2011 45IT. All Rights Reserved 浙ICP备09049068号