Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Result Cache Hint

715920Nov 18 2011 — edited Dec 1 2011
Dear all,
what are the restrictions for using result cache hint on queries? Like using it on union or join or subqueries? Which doc should I read regarding to it?

Also I run the following queries on HR sample schema:
select first_name,(select /*+ RESULT_CACHE */ last_name from employees where employee_id=100) from employees;
select first_name from (select /*+ RESULT_CACHE */ first_name from employees);
Using
select name, value from v$result_cache_statistics where id=7;
I can verify if the first subquery, where it's evaluated in each row, doesn't use result cache hint whereas the second on uses on. How so?

Best regards,
Val
This post has been answered by Dom Brooks on Nov 18 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2011
Added on Nov 18 2011
3 comments
447 views