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 2022/10/30 09:49:03 UTC

[iotdb] branch enable_partition created (now b689272480)

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

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


      at b689272480 Enable time partition by default

This branch includes the following new commits:

     new b689272480 Enable time partition by default

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: Enable time partition by default

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

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

commit b68927248038dd0dfae3ce79789807ded6910431
Author: HTHou <hh...@outlook.com>
AuthorDate: Sun Oct 30 17:48:45 2022 +0800

    Enable time partition by default
---
 node-commons/src/assembly/resources/conf/iotdb-common.properties | 2 +-
 server/src/main/java/org/apache/iotdb/db/conf/IoTDBConfig.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/node-commons/src/assembly/resources/conf/iotdb-common.properties b/node-commons/src/assembly/resources/conf/iotdb-common.properties
index 139f801a86..f1c5f53f91 100644
--- a/node-commons/src/assembly/resources/conf/iotdb-common.properties
+++ b/node-commons/src/assembly/resources/conf/iotdb-common.properties
@@ -930,7 +930,7 @@ timestamp_precision=ms
 
 # whether enable data partition. If disabled, all data belongs to partition 0
 # Datatype: boolean
-# enable_partition=false
+# enable_partition=true
 
 # time range for partitioning data inside each data region, the unit is millisecond, default is equal to one week
 # Datatype: long
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 9fc9eb0f26..7f187cd995 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
@@ -746,7 +746,7 @@ public class IoTDBConfig {
   private int primitiveArraySize = 32;
 
   /** whether enable data partition. If disabled, all data belongs to partition 0 */
-  private boolean enablePartition = false;
+  private boolean enablePartition = true;
 
   /** Time partition interval for storage in milliseconds */
   private long timePartitionIntervalForStorage = 604_800_000;