简体   繁体   English

为什么查询优化器将小数用作估计的行数?

[英]Why does the query optimizer use decimals for estimated number of rows?

I'm analyzing a bad performing query. 我正在分析性能不佳的查询。 I've looked for an Index Seek node which is generating a high IO. 我一直在寻找产生高IO的Index Seek节点。 I'm assuming this is due to usage of low cardinality index, because estimated number of rows is far from the actual number of returned rows. 我假设这是由于使用了低基数索引,因为估计的行数与返回的实际行数相差甚远。 My question is why the Query Optimizer shows the estimated number of rows in decimal notation such as 2216,86 ? 我的问题是,为什么查询优化器以十进制表示形式(例如2216,86)显示估计的行数?

因为可能它内部使用了浮点数进行所有计算?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM