This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
change timeouts-in-tidb.md to reflect gc is self-adaptive #74
Open
jinwhu
wants to merge
4
commits into
pingcap:master
Choose a base branch
from
jinwhu:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,20 @@ summary: 介绍如何设计数据库中的对象,如索引、字段类型等 | |
|
||
- 当使用宽字段类型(如 Text、MediumBlob、MediumText)时,需注意读取并发度,以控制内存使用预防 OOM 。 | ||
|
||
关于 char 类型的特别说明: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 能否考虑把「CHAR:仅仅只有单个字符的字段使用 CHAR(1) 类型,例如性别字段。」这一行放在「关于 char 类型的特别说明:」正上方? |
||
1. 新框架 ( new_collations_enabled_on_first_bootstrap) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 是否可以明确下是什么新框架?TiDB 排序规则新框架? |
||
|
||
在 4.0 版本之前,TiDB 只提供了旧的排序规则框架,能够在语法上支持的绝大部分 MySQL 排序规则,但语义上所有的排序规则都当成二进制排序规则。4.0 版本中,TiDB 增加了新的排序规则框架用于在语义上支持不同的排序规则,保证字符串比较时严格遵循对应的排序规则。 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 缩进 8 个空格,这里多了一个空格。下同 |
||
|
||
2. 定长字符串的存储结果自动补全功能: | ||
|
||
在新旧框架下都不支持:即:一个字段 char(5) ,假设其显式写入是 'ab', 如果希望存储结果在 TiDB 上得到形如 Oracle或者 MySQL 的自动补全 'ab+3个空格补全'的形式,目前在新旧框架下都是不支持的。 | ||
|
||
3. 定长字符串的查询的 Padding 功能: | ||
|
||
只有在新框架下支持,即:一个字段 char(5) ,显式写入是 'ab ', 底层存储只能是'ab',而不是自动补齐的 'ab ' 形式。 | ||
并且只有在新框架下,可以按照 'ab '的条件找到这一行数据。 | ||
|
||
## 3. 字段默认值 | ||
|
||
1. 在一个数据类型描述中的 DEFAULT value 段描述了一个列的默认值。这个默认值必须是常量,不可以是一个函数或者是表达式。但是对于时间类型,可以例外的使用NOW、CURRENT_TIMESTAMP、LOCALTIME、LOCALTIMESTAMP 等函数作为 DATETIME 或者 TIMESTAMP 的默认值。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
能否考虑把「CHAR:仅仅只有单个字符的字段使用 CHAR(1) 类型,例如性别字段。」这一行放在「关于 char 类型的特别说明:」正上方?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
每一行上下都需要空一行