reportserver PDF下载性能改进

时间:2017-09-21 08:00:30

标签: reporting-services downloadfile

Scnario :从报告服务器下载1000 PDF。

PDF尺寸:从30KB到250KB不等

业务需求 t:应在一小时内完成

基础架构设置:报告服务器和下载文件并存储所有内容的sql作业都在SAME服务器中。

当前代码

Dim httpConn As ConnectionManager = Dts.Connections("ReportServer " & strServer)
        Dim clientConn As HttpClientConnection = New HttpClientConnection(httpConn.AcquireConnection(Nothing))
        Dim docItemID As String = CType(Dts.Variables("User::DocItemID").Value, String)
        Dim ReportFileName As String = CType(Dts.Variables("User::FolderLocation").Value, String) & docItemID
        Dim TransportFee As Decimal = CType(Dts.Variables("User::TransportFee").Value, Decimal)
        clientConn.ServerURL = "http://XXXX" & strServer & "/ReportServer?/XXXX-Reports/" & strString & "&docItemId=" & docItemID & "&type=3&rs:Command=Render&rs:Format=PDF&rc:Toolbar=False"
        clientConn.DownloadFile(ReportFileName & ".pdf", True)

问题:即使服务器CPU使用率不高也意味着服务器不忙,仍然在一小时内只下载了300个文件。 你能否建议我们有什么其他选择来处理这种情况?现在我们可以在一小时内下载1000 pdf。

我们应该增加CPU核心,还是认为任何其他类都可以提供比HttpClientConnection更好的性能。

提前致谢

0 个答案:

没有答案