From ee3fff0885e394ff2639aaabf67b427d8584a2da Mon Sep 17 00:00:00 2001 From: baiyuqing Date: Mon, 11 Dec 2023 11:01:27 +0800 Subject: [PATCH 1/4] cloud: Add new limitation on serverless Signed-off-by: baiyuqing --- tidb-cloud/limited-sql-features.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tidb-cloud/limited-sql-features.md b/tidb-cloud/limited-sql-features.md index f330c4bc74465..efa8a0d0f0ca0 100644 --- a/tidb-cloud/limited-sql-features.md +++ b/tidb-cloud/limited-sql-features.md @@ -223,12 +223,13 @@ TiDB Cloud works with almost all workloads that TiDB supports, but there are som | `validate_password.policy` | No limitation | Can only be `MEDIUM` or `STRONG` [^10] | | `validate_password.special_char_count` | No limitation | At least `1` [^10] | | `wait_timeout` | No limitation | Read-only [^11] | +| `tidb_replica_read` | No limitation | Read-only [^14] | [^1]: Configuring data placement is not supported on TiDB Serverless. [^2]: Configuring resource groups is not supported on TiDB Serverless. -[^3]: To perform [Back up and Restore](/tidb-cloud/backup-and-restore-serverless.md) operations on TiDB Serverless, you can use the TiDB Cloud console instead. +[^3]: To perform [Back up and Restore](/tidb-cloud/backup-and-restore-serverless.md) operations on TiDB Serverless, you can use the TiDB Cloud console instead. [^4]: The feature is unavailable in [Security Enhanced Mode (SEM)](/system-variables.md#tidb_enable_enhanced_security). @@ -249,3 +250,5 @@ TiDB Cloud works with almost all workloads that TiDB supports, but there are som [^12]: Customizing cache size using [`AUTO_ID_CACHE`](/auto-increment.md#cache-size-control) is temporarily unavailable on TiDB Serverless. [^13]: Not supported. Enabling `require_secure_transport` for TiDB Dedicated clusters will result in SQL client connection failures. + +[^14]: `tidb_replica_read` only supports `leader` on TiDB Serverless. From 41c42cd1a1ab9efbd4229a0485437858a3642177 Mon Sep 17 00:00:00 2001 From: baiyuqing Date: Mon, 11 Dec 2023 11:25:00 +0800 Subject: [PATCH 2/4] updete SEM doc Signed-off-by: baiyuqing --- system-variables.md | 4 ++++ tidb-cloud/limited-sql-features.md | 17 ++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/system-variables.md b/system-variables.md index 4d67ac6904200..a836054317826 100644 --- a/system-variables.md +++ b/system-variables.md @@ -4150,6 +4150,10 @@ SHOW WARNINGS; ### tidb_replica_read New in v4.0 +>**Note:** +> +>This variable is not supported on [TiDB Serverless](https://docs.pingcap.com/tidbcloud/select-cluster-tier#tidb-serverless). + - Scope: SESSION | GLOBAL - Persists to cluster: Yes - Type: Enumeration diff --git a/tidb-cloud/limited-sql-features.md b/tidb-cloud/limited-sql-features.md index efa8a0d0f0ca0..5ebfc8df36772 100644 --- a/tidb-cloud/limited-sql-features.md +++ b/tidb-cloud/limited-sql-features.md @@ -225,8 +225,23 @@ TiDB Cloud works with almost all workloads that TiDB supports, but there are som | `wait_timeout` | No limitation | Read-only [^11] | | `tidb_replica_read` | No limitation | Read-only [^14] | -[^1]: Configuring data placement is not supported on TiDB Serverless. + +## Optimizer Hint + +| Hint | TiDB Dedicated | TiDB Serverless | +|:-|:-|:-| +| `RESOURCE_GROUP()` | No limitation | Not supported | +| `RESOURCE_GROUP()` | No limitation | Not supported | +| `MEMORY_QUOTA()` | No limitation | Not supported | +| `MAX_EXECUTION_TIME()` | No limitation | Not supported | +| `READ_CONSISTENT_REPLICA()` | No limitation | Not supported [^14] | + + + + + +[^1]: Configuring data placement is not supported on TiDB Serverless. [^2]: Configuring resource groups is not supported on TiDB Serverless. [^3]: To perform [Back up and Restore](/tidb-cloud/backup-and-restore-serverless.md) operations on TiDB Serverless, you can use the TiDB Cloud console instead. From d0e27965ab8a789e1719b7202181e7723952a3c7 Mon Sep 17 00:00:00 2001 From: baiyuqing Date: Mon, 11 Dec 2023 13:47:54 +0800 Subject: [PATCH 3/4] fix lint Signed-off-by: baiyuqing --- tidb-cloud/limited-sql-features.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tidb-cloud/limited-sql-features.md b/tidb-cloud/limited-sql-features.md index 5ebfc8df36772..5d17b5b57dec3 100644 --- a/tidb-cloud/limited-sql-features.md +++ b/tidb-cloud/limited-sql-features.md @@ -225,8 +225,6 @@ TiDB Cloud works with almost all workloads that TiDB supports, but there are som | `wait_timeout` | No limitation | Read-only [^11] | | `tidb_replica_read` | No limitation | Read-only [^14] | - - ## Optimizer Hint | Hint | TiDB Dedicated | TiDB Serverless | @@ -237,10 +235,6 @@ TiDB Cloud works with almost all workloads that TiDB supports, but there are som | `MAX_EXECUTION_TIME()` | No limitation | Not supported | | `READ_CONSISTENT_REPLICA()` | No limitation | Not supported [^14] | - - - - [^1]: Configuring data placement is not supported on TiDB Serverless. [^2]: Configuring resource groups is not supported on TiDB Serverless. From 68050baba0468fb27892b076299498366fe38c34 Mon Sep 17 00:00:00 2001 From: baiyuqing Date: Mon, 11 Dec 2023 13:54:30 +0800 Subject: [PATCH 4/4] fix lint Signed-off-by: baiyuqing --- tidb-cloud/limited-sql-features.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tidb-cloud/limited-sql-features.md b/tidb-cloud/limited-sql-features.md index 5d17b5b57dec3..f681ae6f8ff0e 100644 --- a/tidb-cloud/limited-sql-features.md +++ b/tidb-cloud/limited-sql-features.md @@ -236,6 +236,7 @@ TiDB Cloud works with almost all workloads that TiDB supports, but there are som | `READ_CONSISTENT_REPLICA()` | No limitation | Not supported [^14] | [^1]: Configuring data placement is not supported on TiDB Serverless. + [^2]: Configuring resource groups is not supported on TiDB Serverless. [^3]: To perform [Back up and Restore](/tidb-cloud/backup-and-restore-serverless.md) operations on TiDB Serverless, you can use the TiDB Cloud console instead.