【发布时间】:2021-06-22 13:06:09
【问题描述】:
各位!
我可以从 v$result_cache_objects 中得到期望,当我的查询包含 RESULT_CACHE 提示时,我应该在我的查询的 v$result_cache_objects 的 row_count 列中看到一个非零值?
像这样:
Select /*+ RESULT_CACHE*/ order_id, order_name
from orders
我想发布
select row_count from v$cache_memory_objects
where cache_id = <cache id of my query>
并查看 row_count 的非零值。
环境: 甲骨文 18c XE
参数:
result_cache_mode MANUAL
result_cache_max_size 8060928
result_cache_max_result 5
result_cache_remote_expiration 0
我认为row_count等于非零非常重要 让我相信 RESULT_CACHE 是有效的。 如果您有其他标准让开发人员相信 RESULT_CACHE 是有效的,请指点我。
提前致谢, 安德鲁。
【问题讨论】:
-
你的假设是好的,查看我关于这个主题的文章了解更多细节:dba-scripts.com/articles/oracle-internals/result-cache
标签: sql oracle performance caching