Skip to content

Commit b135a08

Browse files
authored
update sort_buffer_size_in_bytes default is 0 from v136 (#924)
1 parent 0b6617b commit b135a08

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

src/UserGuide/V1.3.x/Reference/Common-Config-Manual.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,17 @@ Different configuration parameters take effect in the following three ways:
636636
|Default| 100000 |
637637
|Effective|After restarting system|
638638

639+
* sort\_buffer\_size\_in\_bytes
640+
641+
|Name| sort\_buffer\_size\_in\_bytes |
642+
|:---:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
643+
|Description| Sort buffer size, in bytes. |
644+
|Type| Long |
645+
|Default| Before V1.3.6: 1048576 (equivalent to 1MB);<br> From V1.3.6 onwards (including all V1.x versions): 0.The memory rule for external sort in the sort operator is as follows: When the data size is smaller than the sort buffer size (sort_buffer_size_in_bytes, in bytes), the sort operator will use in-memory sort. If sort_buffer_size_in_bytes ≤ 0, the default value is used. The default value is calculated as the minimum of 32MB and (memory for query operators / query_thread_count / 2). If sort_buffer_size_in_bytes > 0, the specified value is used. |
646+
|Effective| Hot Reload |
647+
648+
649+
639650
### TTL Configuration
640651
* ttl\_check\_interval
641652

src/UserGuide/dev-1.3/Reference/Common-Config-Manual.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,16 @@ Different configuration parameters take effect in the following three ways:
636636
|Default| 100000 |
637637
|Effective|After restarting system|
638638

639+
* sort\_buffer\_size\_in\_bytes
640+
641+
|Name| sort\_buffer\_size\_in\_bytes |
642+
|:---:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
643+
|Description| Sort buffer size, in bytes. |
644+
|Type| Long |
645+
|Default| Before V1.3.6: 1048576 (equivalent to 1MB);<br> From V1.3.6 onwards (including all V1.x versions): 0.The memory rule for external sort in the sort operator is as follows: When the data size is smaller than the sort buffer size (sort_buffer_size_in_bytes, in bytes), the sort operator will use in-memory sort. If sort_buffer_size_in_bytes ≤ 0, the default value is used. The default value is calculated as the minimum of 32MB and (memory for query operators / query_thread_count / 2). If sort_buffer_size_in_bytes > 0, the specified value is used. |
646+
|Effective| Hot Reload |
647+
648+
639649
### TTL Configuration
640650
* ttl\_check\_interval
641651

src/zh/UserGuide/V1.3.x/Reference/Common-Config-Manual.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,16 @@ IoTDB ConfigNode 和 DataNode 的公共配置参数位于 `conf` 目录下。
666666
|默认值| 100000 |
667667
|改后生效方式|重启生效|
668668

669+
* sort\_buffer\_size\_in\_bytes
670+
671+
|名字| sort\_buffer\_size\_in\_bytes |
672+
|:---:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
673+
|描述| 排序缓冲区大小,单位为字节 |
674+
|类型| Long |
675+
|默认值| V 1.3.6 之前 :默认值为 1048576 ;<br>V 1.3.6 及后续 V 1.x 系列:默认值为 0 。排序算子中用于外部排序的内存规则如下:当数据量小于排序缓冲区大小(sort_buffer_size_in_bytes,单位为字节)时,排序算子将采用内存排序方式。若sort_buffer_size_in_bytes的取值小于等于0,则使用默认值;默认值的计算方式为:取32MB与(查询算子可用内存 / 查询线程数 / 2)二者中的较小值。 若sort_buffer_size_in_bytes的取值大于0,则使用该配置的指定值。 |
676+
|改后生效方式| 热加载 |
677+
678+
669679
#### TTL 配置
670680
* ttl\_check\_interval
671681

src/zh/UserGuide/dev-1.3/Reference/Common-Config-Manual.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,16 @@ IoTDB ConfigNode 和 DataNode 的公共配置参数位于 `conf` 目录下。
666666
|默认值| 100000 |
667667
|改后生效方式|重启生效|
668668

669+
* sort\_buffer\_size\_in\_bytes
670+
671+
|名字| sort\_buffer\_size\_in\_bytes |
672+
|:---:|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
673+
|描述| 排序缓冲区大小,单位为字节 |
674+
|类型| Long |
675+
|默认值| V 1.3.6 之前 :默认值为 1048576 ;<br>V 1.3.6 及后续 V 1.x 系列:默认值为 0 。排序算子中用于外部排序的内存规则如下:当数据量小于排序缓冲区大小(sort_buffer_size_in_bytes,单位为字节)时,排序算子将采用内存排序方式。若sort_buffer_size_in_bytes的取值小于等于0,则使用默认值;默认值的计算方式为:取32MB与(查询算子可用内存 / 查询线程数 / 2)二者中的较小值。 若sort_buffer_size_in_bytes的取值大于0,则使用该配置的指定值。 |
676+
|改后生效方式| 热加载 |
677+
678+
669679
#### TTL 配置
670680
* ttl\_check\_interval
671681

0 commit comments

Comments
 (0)