Cached reports

Let's set up caching for the sales commission report. What caching does, it allows Report Manager to run the SQL query one time and store the data for subsequent use. The length of time the data is stored is based on the length of time set in the properties. Parameter changes will also affect the length of time the query remains cached. This is why we made the SalesPersonID a report parameter and not a parameter in the stored procedure.

Let's set the cache properties so that the data will be available for half an hour after the data is requested. This will provide enough time for all the reports to be generated for our data driven subscription that we will set up later. First, we need to specify that we want to use caching:

  1. Hover to the right of the report name until an upside-down arrow appears, then click on the upside-down arrow.
  2. Select the Manage menu item.
  3. Click on the Processing Options menu item on the left-hand side.
  4. Select the second option button labeled: Cache a temporary copy of the report. Expire copy of report after a number of minutes.
  5. We will use the default value of 30.
  6. Click on the Apply button at the bottom of the screen:
    Cached reports

Now, we can set up a cache plan for the first of each month:

  1. Click on the Cache Refresh Options menu item on the left.
  2. Click on the toolbar item called new Cache Refresh Plan.
  3. Set the Description property to Monthly Subscription Cache Plan.
  4. Select the Shared schedule option button.
  5. Select the shared schedule we created, called First of Month at 2 am.
  6. Select the Use Default checkboxes for both parameters.
  7. Click on the OK button:
    Cached reports
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.235.188