

 从补丁 198 开始，Amazon Redshift 将不再支持创建新的 Python UDF。现有的 Python UDF 将继续正常运行至 2026 年 6 月 30 日。有关更多信息，请参阅[博客文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

# analyze\$1threshold\$1percent
<a name="r_analyze_threshold_percent"></a>

## 值（默认为粗体）
<a name="t_analyze_threshold_percent-values"></a>

 **10**，0 至 100.0

## 说明
<a name="r_analyze_threshold_percent-description"></a>

设置用于分析表的已更改行数百分比的阈值。为了减少处理时间并提高整体系统性能，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` 参数。无法在参数组中修改参数。

## 示例
<a name="r_analyze_threshold_percent-example"></a>

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