You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/06/12 02:43:48 UTC

[iotdb] branch rel/0.12 updated: Change the default primitive array size to 32 (#3399)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch rel/0.12
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/0.12 by this push:
     new 0e1f630  Change the default primitive array size to 32 (#3399)
0e1f630 is described below

commit 0e1f630bf637516f4acd326db9bdb3a7bc604339
Author: Haonan <hh...@outlook.com>
AuthorDate: Sat Jun 12 10:43:28 2021 +0800

    Change the default primitive array size to 32 (#3399)
---
 server/src/assembly/resources/conf/iotdb-engine.properties     | 2 +-
 server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/src/assembly/resources/conf/iotdb-engine.properties b/server/src/assembly/resources/conf/iotdb-engine.properties
index 2826a9e..ae7a18e 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -253,7 +253,7 @@ timestamp_precision=ms
 # write_read_schema_free_memory_proportion=4:3:1:2
 
 # primitive array size (length of each array) in array pool
-# primitive_array_size=128
+# primitive_array_size=32
 
 # Ratio of write memory for invoking flush disk, 0.4 by default
 # If you have extremely high write load (like batch=1000), it can be set lower than the default value like 0.2
diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
index 31a72eb..e3f39f6 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java
@@ -564,7 +564,7 @@ public class IoTDBConfig {
   private long defaultTTL = Long.MAX_VALUE;
 
   /** The default value of primitive array size in array pool */
-  private int primitiveArraySize = 128;
+  private int primitiveArraySize = 32;
 
   /** whether enable data partition. If disabled, all data belongs to partition 0 */
   private boolean enablePartition = false;