About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Managing data caches and queries in Data Virtualization
Last updated: Mar 17, 2025
Data Virtualization Managers can cache a query to save its data results and optimize query performance.
About this task
In Data Virtualization, you can virtualize remote data sources so that data can remain remote while it is accessed through a single framework. For example, you can virtualize tables across different remote databases, and you can run queries that can join these tables. To avoid query executions that are time-consuming, Data Virtualization Managers can create caches to improve performance by caching the result sets of your queries.
Managing caches
On the Cache management page, a Data Virtualization
Manager can monitor storage and responsiveness of your data caches. To
learn more about optimizing queries, consider the following elements from the Cache
management page:
- The Cache storage bar chart lets you view the total amount of cache storage that you allocated during provisioning. You can also monitor the amount of storage that is used by both active and inactive data caches. Active data caches are used in query optimization.
- The Responsiveness bar chart lets you monitor how many queries ran in a specific execution time period. You can also compare the responsiveness of queries that use data caches with the queries that do not use data caches.
- The Total hits column within Active data caches shows you the overall number of hits an active cache received.
Watch the following video to learn how to optimize queries using cache management in Data Virtualization.
Procedure
Refer to the following tasks to learn how to manage and customize your data caches:
- Adding a cache entry
- To add a cache entry, see Adding data caches.
- Viewing details of a cache
- To view the details of a cache, follow these steps.
- Go to .
- Go to the action menu of the cache and click View cache details.
- Editing a data cache
- To edit a data cache, follow these steps.
- Refreshing a cache
- To edit the cache refresh schedule, follow these steps.
- Go to the action menu of an active cache and click
Edit refresh rate.Note: You can only edit active caches.
- Set a refresh rate for the cache to prevent the cache from becoming stale in time.
- None, manual only: To refresh a cache manually, go to the action menu of an active cache and click Refresh now.
- Minutes: Select the interval in minutes to refresh your cache. For example, refresh every 15 minutes.
- Hourly: Select time (minute) of the hour to refresh your cache. For example, refresh every hour at the 30 minutes past the hour.
- Daily: Select time of the day to refresh your cache. For example, refresh every day at 12:00 AM.
- Weekly: Select days of the week and time of the day to refresh your cache. For example, refresh every Monday, Wednesday, and Friday at 12:00 AM.
- Monthly: Select weeks of the month, days of the week, and time of the day to refresh your cache. For example, refresh on the first day of the month at 12:00 AM.
- Click Apply.
- Go to the action menu of an active cache and click
Edit refresh rate.
- Deactivating an active cache
- To deactivate an active cache, go to the action menu of the cache and click Deactivate.
- Deleting a data cache
- To delete a data cache, go to the action menu of the cache and click Delete.
- Re-creating a deleted data cache
- To re-create a deleted data cache, follow these steps.
- Click .
- Go to the action menu of the cache you want to re-create, and then click Recreate cache.
Was the topic helpful?
0/1000