Skip to content

Commit

Permalink
Fix format in TiDB INDEXES (#11730)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt authored Oct 21, 2022
1 parent 829f08a commit 760ee72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion analyze-slow-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ mysql> explain select * from t t1, t t2 where t1.a>t2.a;

下面是一组例子,假设表结构为 `create table t (id int, a int, b int, c int, primary key(id), key(a), key(b, c))`

1. `select * from t`: 没有过滤条件,会扫全表,所以会用 `TableFullScan` 算子读取数据;
1. `select * from t`没有过滤条件,会扫全表,所以会用 `TableFullScan` 算子读取数据;
2. `select a from t where a=2`:有过滤条件且只读索引列,所以会用 `IndexReader` 算子读取数据;
3. `select * from t where a=2`:在 `a` 有过滤条件,但索引 `a` 不能完全覆盖需要读取的内容,因此会采用 `IndexLookup`
4. `select b from t where c=3`:多列索引没有前缀条件就用不上,所以会用 `IndexFullScan`
Expand Down
6 changes: 3 additions & 3 deletions enable-tls-between-clients-and-servers.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ TiDB 服务端支持启用基于 TLS(传输层安全)协议的加密连接

要启用安全连接,请参考以下相关参数说明:

- [`auto-tls`](/tidb-configuration-file.md#auto-tls): 启用证书自动生成功能(从 v5.2.0 开始)
- [`auto-tls`](/tidb-configuration-file.md#auto-tls)启用证书自动生成功能(从 v5.2.0 开始)
- [`ssl-cert`](/tidb-configuration-file.md#ssl-cert):指定 SSL 证书文件路径
- [`ssl-key`](/tidb-configuration-file.md#ssl-key):指定证书文件对应的私钥
- [`ssl-ca`](/tidb-configuration-file.md#ssl-ca):可选,指定受信任的 CA 证书文件路径
Expand Down Expand Up @@ -62,8 +62,8 @@ MySQL 5.7 及以上版本自带的客户端默认尝试使用安全连接,若

除此参数外,MySQL 8.0 客户端有两种 SSL 模式:

- `--ssl-mode=VERIFY_CA`: 根据 `--ssl-ca` 签发的 CA 验证来自服务器的证书。
- `--ssl-mode=VERIFY_IDENTITY`: `VERIFY_CA` 相同,但也验证所连接的主机名是否与证书匹配。
- `--ssl-mode=VERIFY_CA`根据 `--ssl-ca` 签发的 CA 验证来自服务器的证书。
- `--ssl-mode=VERIFY_IDENTITY``VERIFY_CA` 相同,但也验证所连接的主机名是否与证书匹配。

详细信息请参阅 MySQL 文档中关于[客户端配置安全连接](https://dev.mysql.com/doc/refman/5.7/en/using-encrypted-connections.html#using-encrypted-connections-client-side-configuration)的部分。

Expand Down
6 changes: 3 additions & 3 deletions information-schema/information-schema-tidb-indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ DESC tidb_indexes;
| IS_VISIBLE | varchar(64) | YES | | NULL | |
| CLUSTERED | varchar(64) | YES | | NULL | |
+---------------+---------------+------+------+---------+-------+
10 rows in set (0.00 sec)
12 rows in set (0.00 sec)
```

`INDEX_ID` 是 TiDB 为每个索引分配的唯一 ID。它可以与从另一个表或 API 获得的 `INDEX_ID` 一起执行 `join` 操作。
Expand Down Expand Up @@ -63,5 +63,5 @@ WHERE
* `SUB_PART`:索引前缀长度。如果列是部分被索引,则该值为被索引的字符数量,否则为 `NULL`
* `INDEX_COMMENT`:创建索引时以 `COMMENT` 标注的注释。
* `INDEX_ID`:索引的 ID。
* `IS_VISIBLE`: 索引是否可见。
* `CLUSTERED`: 是否为[聚簇索引](/clustered-indexes.md)
* `IS_VISIBLE`索引是否可见。
* `CLUSTERED`是否为[聚簇索引](/clustered-indexes.md)

0 comments on commit 760ee72

Please sign in to comment.