简体   繁体   English

SSRS中的表达会减慢报告呈现速度

[英]Expression in SSRS Slowing down Report Rendering

An expression in my report is making the report to run very slowly. 我的报告中的一种表达使报告运行非常缓慢。 The expression, set in a Row Column Visibility Property is like so: 在“行列可见性”属性中设置的表达式如下所示:

    =IIF(Parameters!View.Value = 1 AND (Fields!PastVal.Value = 0)AND(Fields!DatePay.Value = 0) AND 
    (Fields!Line.Value = 0),True, IIF(Parameters!View.Value = 2 AND Fields!TaxPaid.Value = "N",True, False))

Now this expression returns the right result. 现在,此表达式返回正确的结果。 The problem is that it makes the report run very slow. 问题在于它使报表运行非常缓慢。

To test it, I took off the expression and reports are displayed in less than 3 seconds but with the expression on, report takes over 50 seconds to run. 为了对其进行测试,我取下了表达式,并在不到3秒的时间内显示了报告,但是启用该表达式后,报告需要花费50秒钟以上的时间才能运行。 Any help on this? 有什么帮助吗? Thanks. 谢谢。

Using This Query check Which Step taking time for Report Processing: 使用此查询检查哪个步骤需要花费时间进行报表处理:

use ReportServer

select top 10 InstanceName,
                ItemPath,
                UserName,
                CAST((TimeDataRetrieval)as numeric(18,2))/60000 TimeDataRetrieval,
                CAST((TimeProcessing)as numeric(18,2))/60000 TimeProcessing,
                CAST((TimeRendering)as numeric(18,2))/60000 TimeRendering,
                CAST((TimeDataRetrieval+TimeProcessing+TimeRendering)as numeric(18,2))/ 60000 [Total_Time(Minutes)]
 from ExecutionLog3

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

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