Time partition
Notice: Currently, it’s not recommend to open this function. If open, please calculate appropriate concurrent_writing_time_partition and wal_buffer_size, you can calculate wal_buffer_size = MaxDirectMemorySizeInBytes * 0.3 / (storage_group_num * virtual_storage_group_num) / concurrent_writing_time_partition
- enable_partition
- partition_interval
Name | partition_interval |
---|---|
Description | Time range for dividing storage group, time series data will be divided into groups by this time range |
Type | Int64 |
Default | 604800 |
Effective | Only allowed to be modified in first start up |
Enable time partition and set partition_interval to 86400 (one day), then the data distribution is shown as the following figure:
Insert one datapoint with timestamp 1609459200010, calculate 1609459200010/86400 = 18628, then this datapoint will be stored in TsFile under folder 18628
enable_timed_flush_unseq_memtable: Whether to enable timed flush unsequence memtable, enabled by default.