Caching SSRS Reports

本文介绍如何在SQL Server Reporting Services (SSRS)中配置报告缓存,通过减少报告处理请求的数量来提升性能。首先需调整认证机制,然后通过报告管理器设置缓存选项,包括缓存过期时间和刷新计划。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Caching SSRS Reports

Warning

    Before set up cacheing settings we should change its authentication mechanism to Credentials stored securely in the report server

    

In this article, I will show you how to use caching for SSRS reports. But before that go through below lines which will help to understand the concept of caching in sql server reporting services.

A cached report is a saved copy of a processed report. Cached reports are used to improve performance by reducing the number of processing requests to the report processor and by reducing the time required to retrieve large reports. They have a mandatory expiration period,

A report server can cache a copy of a processed report and return that copy when a user opens the report. To a user, the only evidence available to indicate the report is a cached copy is the date and time that the report ran. If the date or time is not current and the report is not a snapshot, the report was retrieved from cache.

Caching can shorten the time required to retrieve a report if the report is large or accessed frequently. If the server is rebooted, all cached instances are reinstated when the Report Server Web service comes back online.

Caching is a performance-enhancement technique. The contents of the cache are volatile and can change as reports are added, replaced, or removed.

To enable caching for a report, go through below steps :

1. First of all open Internet Explorer and go to Report Manager URL which is something  like below:

http://bhushan-pc/Reports2012

Your internet explorer tab looks like below :

1-Caching SSRS Reports

2. Click on your SSRS project. In my case it is Start SSRS. So now it will show you list of reports which are deployed on your report server.

2-Caching SSRS Reports

3. Now click on down arrow on the report which you want to subscribe and select Manage as shown in below screen shot.

3-Caching SSRS Reports

4. Then select Processing Options from left pane and you will see screen shown in below screen shot. In that screen, you have three different choice.

Either you can set time in minutes

4-Caching SSRS Reports

or you can defined a schedule as shown below.

4-Caching SSRS Reports-1

 

5. Then click on Apply button. So we have done with Caching SSRS Reports.

Main purpose of Caching SSRS Reports is to improve the performance. To see the effect of Caching, execute following query.

?
1
2
3
SELECT  ITEMPATH,USERNAME,PARAMETERS,TIMESTART,TIMEEND,TIMEDATARETRIEVAL,
         TIMEPROCESSING,TIMERENDERING,SOURCE,BYTECOUNT,[ROWCOUNT]
FROM    EXECUTIONLOG3

5-Caching SSRS Reports

Here you can see that it will not take even 1 second to retrieve data. Similarly you can see time difference in TIMESTART & TIMEEND.

6. You can also create Cache Refresh Plan which create a schedule for preloading the cache with temporary copies of data for a report. A refresh plan includes a schedule and the option to specify or override values for parameters.

To create a Cache Refresh Plan go to Cache Refresh Options and click on New Cache Refresh Plan.

6-Caching SSRS Reports

7. In that screen give details as shown in below screen. Then click on OK button.

7-Caching SSRS Reports

you can also check the history of Cache Refresh Plan.

7-Caching SSRS Reports-1

Congratulations! We successfully completed use of Caching SSRS Reports.

资源下载链接为: https://pan.quark.cn/s/22ca96b7bd39 在当今的软件开发领域,自动化构建与发布是提升开发效率和项目质量的关键环节。Jenkins Pipeline作为一种强大的自动化工具,能够有效助力Java项目的快速构建、测试及部署。本文将详细介绍如何利用Jenkins Pipeline实现Java项目的自动化构建与发布。 Jenkins Pipeline简介 Jenkins Pipeline是运行在Jenkins上的一套工作流框架,它将原本分散在单个或多个节点上独立运行的任务串联起来,实现复杂流程的编排与可视化。它是Jenkins 2.X的核心特性之一,推动了Jenkins从持续集成(CI)向持续交付(CD)及DevOps的转变。 创建Pipeline项目 要使用Jenkins Pipeline自动化构建发布Java项目,首先需要创建Pipeline项目。具体步骤如下: 登录Jenkins,点击“新建项”,选择“Pipeline”。 输入项目名称和描述,点击“确定”。 在Pipeline脚本中定义项目字典、发版脚本和预发布脚本。 编写Pipeline脚本 Pipeline脚本是Jenkins Pipeline的核心,用于定义自动化构建和发布的流程。以下是一个简单的Pipeline脚本示例: 在上述脚本中,定义了四个阶段:Checkout、Build、Push package和Deploy/Rollback。每个阶段都可以根据实际需求进行配置和调整。 通过Jenkins Pipeline自动化构建发布Java项目,可以显著提升开发效率和项目质量。借助Pipeline,我们能够轻松实现自动化构建、测试和部署,从而提高项目的整体质量和可靠性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值