[
https://issues.jboss.org/browse/TEIID-1504?page=com.atlassian.jira.plugin...
]
Ramesh Reddy resolved TEIID-1504.
---------------------------------
Resolution: Rejected
This is user error. The cache hint needs to be in the transformation of the view. When the
cache hint is on the user query it only applies to the "resultset" caching, not
internal materialized view.
1) Also, the cache hint defined on the view only invalidates the cache, does not
automatically reload when TTL expires
2) The loading can occur
a) if you re-issue the query, a async job is fired to load the matview contents,
however until the matview is loaded the old results will be returned.
b) if you do not like the loading strategy in (a), you can issue a
"SYSADMIN.refreshmatview(viewname, invalidate)" system procedure call, to load
the table immediately.
c) You can also use "admin-console" to do the same operation as (b) using
UI under VDB Control tab.
Internal Materialization does not honor the cache hint
------------------------------------------------------
Key: TEIID-1504
URL:
https://issues.jboss.org/browse/TEIID-1504
Project: Teiid
Issue Type: Bug
Components: Query Engine
Affects Versions: 7.2
Reporter: Ramesh Reddy
Assignee: Steven Hawkins
Fix For: 7.4
When a internal materialization is loaded with /*+ cache(pref_mem ttl:120000)*/ select *
from view.g1, to does not refresh/flush the matview contents from memory after two minutes
(120000). Upon inspecting the code, it looks like the Cache Hint is being on searched on
the created temp table rather than the original query.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira