Cache a Shared Dataset
Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
One way to improve performance is to configure caching properties for a shared dataset. When a shared dataset is cached, a copy of the query results is saved for a specified period of time. The first user who requests a report that uses the shared dataset must wait for the query results and all processing to complete before viewing the report. Subsequent users who request the report within the caching period will experience improved performance because the query and processing has already occurred. You can also specify a cache refresh plan to run the query and cache the results until the specified cache expiration.
Users running reports based on a shared dataset or cache refresh plans create the query cache and in both cases, the cache is available based on the cache expiration options.
There are restrictions on the types of shared datasets that you can cache. For example, the query results cannot be cached if the data varies based on the user identity or if data is retrieved using the security token of the user who requests the report. For more information, see Cache Shared Datasets (SSRS) and Caching Reports (SSRS).
To schedule the expiration of a cached report
In Report Manager, navigate to the shared dataset for which you want to set caching properties, hover over the item, and click the drop-down arrow.
In the drop-down menu, click Manage.
In the left frame, click Caching.
If you see the error Credentials used to run the shared dataset are not stored, the cache shared dataset option will be disabled. You need modify the data source to store credentials or modify the shared dataset to use a different data source that does store credentials.
Select Cache share dataset.
Select the option to expire the cache after 30 minutes. You can also choose for the cache to expire on a specified schedule.