雖然我明白這個問題是相當含糊的,因爲我沒有盡我所能給你所有的細節,我希望能有一些通用的改進,根據我的代碼或報告自己加快速度。我已經要求更多硬件,但已被拒絕。什麼是使Reporting Services更快的通用方法
public Stream GenerateReport(string reportName, string format)
{
if (reportName == null)
throw new ArgumentNullException("reportName");
reportExecutionService.LoadReport(reportName, null);
string extension;
string encoding;
string mimeType;
ReportExecution2005.Warning[] warnings;
string[] streamIDs;
byte[] results = reportExecutionService.Render(format, null, out extension,
out encoding, out mimeType, out warnings, out streamIDs);
return new MemoryStream(results);
}
報告本身每個都需要6-10秒。我已經縮小了Reporting Services本身的瓶頸。我應該從哪裏開始尋找解決潛在的速度瓶頸問題。注意:一些代碼已被刪除以保護無辜者。
強調#3。這是最簡單的變化之一。 – 2009-02-06 21:06:14