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:44:41 UTC

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

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

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


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

commit b61302ecc6031e65fe3a25c0004ceb3a152f9b25
Author: Haonan <hh...@outlook.com>
AuthorDate: Sat Jun 12 10:44:21 2021 +0800

    Change the default primitive array size to 32 (#3400)
---
 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 9620933..7af077d 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -235,7 +235,7 @@ enable_mem_control=true
 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 5d338c2..fe59dfe 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
@@ -518,7 +518,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;