Refresh Interval Clause
- Last Updated: May 15, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- IBM Db2 5.1
- MySQL 5.1
- Progress OpenEdge 5.1
- SAP Sybase 5.1
- Documentation
Purpose
Specifies the length of time the data in the cached table can be used before being refreshed; it is optional. The driver maintains a timestamp of when the data in a table was last refreshed. When a cached table is used in a query, the driver checks if the current time is greater than the last refresh time plus the value of Refresh_Interval. If it is, the driver refreshes the data in the cached table before processing the query.
Syntax
[REFRESH_INTERVAL {0 | -1 | interval_value [{M, H, D}]}]
where:
- 0
- specifies that the cache is refreshed manually. You can use the Refresh Cache statement to refresh the cache manually.
- -1
- resets the refresh interval to the default value of 12 hours.
- interval_value
- is a positive integer that specifies the amount of time between refreshes. The default
unit of time is hours (
H). You can also specifyMfor minutes orDfor days. For example,60Mwould set the time between refreshes to 60 minutes. The default refresh interval is 12 hours.