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

[iotdb] branch array_size_m created (now 70c9ef6)

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

haonan pushed a change to branch array_size_m
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 70c9ef6  Change the default primitive array size to 32

This branch includes the following new commits:

     new 70c9ef6  Change the default primitive array size to 32

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[iotdb] 01/01: Change the default primitive array size to 32

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 70c9ef6d2583ee0104451e62253ba70fcdf56fe6
Author: HTHou <hh...@outlook.com>
AuthorDate: Sat Jun 12 10:35:49 2021 +0800

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

diff --git a/server/src/assembly/resources/conf/iotdb-engine.properties b/server/src/assembly/resources/conf/iotdb-engine.properties
index 38f1455..1c2e51a 100644
--- a/server/src/assembly/resources/conf/iotdb-engine.properties
+++ b/server/src/assembly/resources/conf/iotdb-engine.properties
@@ -298,8 +298,7 @@ timestamp_precision=ms
 # write_read_schema_free_memory_proportion=4:3:1:2
 
 # primitive array size (length of each array) in array pool
-# Datatype: int
-# 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 000b505..9f11f41 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
@@ -590,7 +590,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;