Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
system-design-primer
Commits
3ea0b15b
Commit
3ea0b15b
authored
Dec 09, 2019
by
Brandon
Committed by
Donne Martin
Dec 08, 2019
Browse files
zh-Hans: Change translation in SQL tuning (#318)
parent
fdba2a25
Changes
1
Hide whitespace changes
Inline
Side-by-side
README-zh-Hans.md
View file @
3ea0b15b
...
...
@@ -926,7 +926,7 @@ SQL 调优是一个范围很广的话题,有很多相关的[书](https://www.a
-
使用
`TEXT`
类型存储大块的文本,例如博客正文。
`TEXT`
还允许布尔搜索。使用
`TEXT`
字段需要在磁盘上存储一个用于定位文本块的指针。
-
使用
`INT`
类型存储高达 2^32 或 40 亿的较大数字。
-
使用
`DECIMAL`
类型存储货币可以避免浮点数表示错误。
-
避免使用
`BLOBS`
存储对象,存储存放对象的位置。
-
避免使用
`BLOBS`
存储
实际
对象,
而是用来
存储存放对象的位置。
-
`VARCHAR(255)`
是以 8 位数字存储的最大字符数,在某些关系型数据库中,最大限度地利用字节。
-
在适用场景中设置
`NOT NULL`
约束来
[
提高搜索性能
](
http://stackoverflow.com/questions/1017239/how-do-null-values-affect-performance-in-a-database-search
)
。
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment