Skip to content

Commit

Permalink
*: remove expression index out of experimental feature. (pingcap#4641)
Browse files Browse the repository at this point in the history
* done

Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>

* fmt

Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>

Co-authored-by: TomShawn <41534398+TomShawn@users.noreply.github.com>
  • Loading branch information
wjhuang2016 and TomShawn authored Oct 10, 2020
1 parent c29dca6 commit 325e5be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
12 changes: 0 additions & 12 deletions sql-statements/sql-statement-create-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,6 @@ Query OK, 0 rows affected (0.31 sec)

## 表达式索引

> **注意:**
>
> 该功能目前为实验特性,不建议在生产环境中使用。
如果需要使用这一特性,在 [TiDB 配置文件](/tidb-configuration-file.md#allow-expression-index-从-v400-版本开始引入)中进行以下设置:

{{< copyable "sql" >}}

```sql
allow-expression-index = true
```

TiDB 不仅能将索引建立在表中的一个或多个列上,还可以将索引建立在一个表达式上。当查询涉及表达式时,表达式索引能够加速这些查询。

考虑以下查询:
Expand Down
7 changes: 1 addition & 6 deletions tidb-configuration-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,4 @@ TiDB 服务状态相关配置。

## experimental

experimental 部分为 TiDB 实验功能相关的配置。该部分从 v3.1.0 开始引入。

### `allow-expression-index` <span class="version-mark">从 v4.0.0 版本开始引入</span>

+ 用于控制是否能创建表达式索引。
+ 默认值:false
experimental 部分为 TiDB 实验功能相关的配置。该部分从 v3.1.0 开始引入。目前暂无相关配置项。

0 comments on commit 325e5be

Please sign in to comment.