[docs][typo] Update fe_config.md (#7252)

Int type should be 4 bytes and decimal should be 16 bytes
This commit is contained in:
renzhimin7
2021-12-06 10:25:28 +08:00
committed by GitHub
parent d3316ff567
commit 27f494dad3
2 changed files with 2 additions and 2 deletions

View File

@ -1554,7 +1554,7 @@ MasterOnly:true
Maximal memory layout length of a row. default is 100 KB. In BE, the maximal size of a RowBlock is 100MB(Configure as max_unpacked_row_block_size in be.conf). And each RowBlock contains 1024 rows. So the maximal size of a row is approximately 100 KB.
eg.
schema: k1(int), v1(decimal), v2(varchar(2000))
then the memory layout length of a row is: 8(int) + 40(decimal) + 2000(varchar) = 2048 (Bytes)
then the memory layout length of a row is: 4(int) + 16(decimal) + 2000(varchar) = 2020 (Bytes)
See memory layout length of all types, run 'help create table' in mysql-client.
If you want to increase this number to support more columns in a row, you also need to increase the
max_unpacked_row_block_size in be.conf. But the performance impact is unknown.

View File

@ -1566,7 +1566,7 @@ NORMAL 优先级挂起加载作业的并发数。
例如。
schema:k1(int), v1(decimal), v2(varchar(2000))
那么一行的内存布局长度为:8(int) + 40(decimal) + 2000(varchar) = 2048 (Bytes)
那么一行的内存布局长度为:4(int) + 16(decimal) + 2000(varchar) = 2020 (Bytes)
查看所有类型的内存布局长度,在 mysql-client 中运行 `help create table`。