簡體   English   中英

SSRS中的表達會減慢報告呈現速度

[英]Expression in SSRS Slowing down Report Rendering

我的報告中的一種表達使報告運行非常緩慢。 在“行列可見性”屬性中設置的表達式如下所示:

    =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))

現在,此表達式返回正確的結果。 問題在於它使報表運行非常緩慢。

為了對其進行測試,我取下了表達式,並在不到3秒的時間內顯示了報告,但是啟用該表達式后,報告需要花費50秒鍾以上的時間才能運行。 有什么幫助嗎? 謝謝。

使用此查詢檢查哪個步驟需要花費時間進行報表處理:

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