diff --git a/faq/sql-faq.md b/faq/sql-faq.md index 8b1eeacaf5478..55233aefbda74 100644 --- a/faq/sql-faq.md +++ b/faq/sql-faq.md @@ -207,6 +207,10 @@ TiDB supports changing the priority on a [global](/system-variables.md#tidb_forc - `DELAYED`: this statement has normal priority and is the same as the `NO_PRIORITY` setting for `tidb_force_priority`. +> **Note:** +> +> Starting from v6.6.0, TiDB supports [Resource Control](/tidb-resource-control.md). You can use this feature to execute SQL statements with different priorities in different resource groups. By configuring proper quotas and priorities for these resource groups, you can gain better scheduling control for SQL statements with different priorities. When resource control is enabled, statement priority will no longer take effect. It is recommended that you use [Resource Control](/tidb-resource-control.md) to manage resource usage for different SQL statements. + You can combine the above two parameters with the DML of TiDB to use them. For example: 1. Adjust the priority by writing SQL statements in the database: diff --git a/system-variables.md b/system-variables.md index 0ba0195db7af1..bbdb6c803c33b 100644 --- a/system-variables.md +++ b/system-variables.md @@ -2451,6 +2451,10 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified - This variable is used to change the default priority for statements executed on a TiDB server. A use case is to ensure that a particular user that is performing OLAP queries receives lower priority than users performing OLTP queries. - The default value `NO_PRIORITY` means that the priority for statements is not forced to change. +> **Note:** +> +> Starting from v6.6.0, TiDB supports [Resource Control](/tidb-resource-control.md). You can use this feature to execute SQL statements with different priorities in different resource groups. By configuring proper quotas and priorities for these resource groups, you can gain better scheduling control for SQL statements with different priorities. When resource control is enabled, statement priority will no longer take effect. It is recommended that you use [Resource Control](/tidb-resource-control.md) to manage resource usage for different SQL statements. + ### tidb_gc_concurrency New in v5.0 > **Note:** diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index 5d77e489d10f3..3af2556e13abe 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -529,6 +529,10 @@ Configuration items related to performance. - Value options: The default value `NO_PRIORITY` means that the priority for statements is not forced to change. Other options are `LOW_PRIORITY`, `DELAYED`, and `HIGH_PRIORITY` in ascending order. - Since v6.1.0, the priority for all statements is determined by the TiDB configuration item [`instance.tidb_force_priority`](/tidb-configuration-file.md#tidb_force_priority) or the system variable [`tidb_force_priority`](/system-variables.md#tidb_force_priority). `force-priority` still takes effect. But if `force-priority` and `instance.tidb_force_priority` are set at the same time, the latter takes effect. +> **Note:** +> +> Starting from v6.6.0, TiDB supports [Resource Control](/tidb-resource-control.md). You can use this feature to execute SQL statements with different priorities in different resource groups. By configuring proper quotas and priorities for these resource groups, you can gain better scheduling control for SQL statements with different priorities. When resource control is enabled, statement priority will no longer take effect. It is recommended that you use [Resource Control](/tidb-resource-control.md) to manage resource usage for different SQL statements. + ### `distinct-agg-push-down` - Determines whether the optimizer executes the operation that pushes down the aggregation function with `Distinct` (such as `select count(distinct a) from t`) to Coprocessors. @@ -874,6 +878,10 @@ Configuration items related to read isolation. - The default value `NO_PRIORITY` means that the priority for statements is not forced to change. Other options are `LOW_PRIORITY`, `DELAYED`, and `HIGH_PRIORITY` in ascending order. - Before v6.1.0, this configuration is set by `force-priority`. +> **Note:** +> +> Starting from v6.6.0, TiDB supports [Resource Control](/tidb-resource-control.md). You can use this feature to execute SQL statements with different priorities in different resource groups. By configuring proper quotas and priorities for these resource groups, you can gain better scheduling control for SQL statements with different priorities. When resource control is enabled, statement priority will no longer take effect. It is recommended that you use [Resource Control](/tidb-resource-control.md) to manage resource usage for different SQL statements. + ### `max_connections` - The maximum number of connections permitted for a single TiDB instance. It can be used for resources control.