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

analyze_threshold_percent

值(默认为粗体)

10,0至 100.0

描述

设置用于分析表的已更改行数百分比的阈值。为了减少处理时间并提高整体系统性能,Amazon Redshift 将跳过对更改行数百分比低于由 analyze_threshold_percent 指定的百分比的任何表的 ANALYZE。例如,如果表包含 100000000 个行,其中 9000000 个行自上次执行 ANALYZE 后发生了更改,则默认情况下,将跳过此表,因为已更改行数的百分比低于 10%。要在仅有少量行发生更改时对表进行分析,请将 analyze_threshold_percent 设置为任意较小的数字。例如,如果您将 analyze_threshold_percent 设置为 0.01,则在含有 100000000 个行的表中至少有 10000 个行发生更改时,将不会跳过该表。要在即使没有任何行发生更改时仍对所有表进行分析,请将 analyze_threshold_percent 设置为 0。

您可以使用 SET 命令仅修改当前会话的 analyze_threshold_percent 参数。无法在参数组中修改参数。

示例

set analyze_threshold_percent to 15; set analyze_threshold_percent to 0.01; set analyze_threshold_percent to 0;