enable_result_cache_for_session - Amazon Redshift
Amazon Web Services 文档中描述的 Amazon Web Services 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 中国的 Amazon Web Services 服务入门 (PDF)

enable_result_cache_for_session

值(默认为粗体)

on (true)、off (false)

描述

指定是否使用查询结果缓存。如果 enable_result_cache_for_sessionon,则在提交查询时,Amazon Redshift 会检查有无查询结果的有效缓存副本。如果在结果缓存中找到匹配项,Amazon Redshift 会使用缓存的结果而不执行查询。如果 enable_result_cache_for_sessionoff,则 Amazon Redshift 会忽略结果缓存,并在所有查询提交时运行查询。

示例

SET enable_result_cache_for_session TO off; --Amazon Redshift now ignores the results cache