[英]ssrs 2008 pie chart performance improvement
I am querying a single table in my dataset which is relatively small (1.5 million rows). 我正在查询数据集中相对较小(150万行)的单个表。 Each row has a column s_flag
. 每行都有一列s_flag
。 When i 当我
select s_flag,count(*) from 'mytable' group by s_flag
the results return in less than a second. 结果在不到一秒钟的时间内返回。
This is what i want to depict on the pie chart,so i am using this as the equivalent to my query: My dataset is a simple select * from mytable
.I am adding in the chart's values count(s_flag)
and in category groups s_flag
. 这就是我想在饼图上描绘的内容,因此我将其用作查询的等效项:我的数据集是select * from mytable
的简单select * from mytable
。我在图表的值count(s_flag)
和类别组s_flag
。
The problem is that the chart takes minutes to load. 问题在于该图表需要几分钟才能加载。 My question is: Is there a way to pass the results from select s_flag,count(*) from 'mytable' group by s_flag
directly in the chart without using ssrs for the count aggregation? 我的问题是:是否有一种方法可以直接在图表中select s_flag,count(*) from 'mytable' group by s_flag
传递结果,而无需使用ssrs进行计数汇总?
select s_flag,count(1) as s_flag_count from 'mytable' group by s_flag
使用s_flag_count
图表的值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.