Auto create metadata
- enable_auto_create_schema
- default_storage_group_level
Illustrated as the following figure:
When default_storage_group_level=2, root.turbine1.d1, root.turbine1.d2, root.turbine2.d1 and root.turbine2.d2 will be set as storage group.
-
- insertTablet method in Session module.
insert method using TSDataType in Session module.
……
- Efficient, time series are auto created when inserting data.
Just pass string, and the database will infer the data type:
insert method without using TSDataType in Session module.
public void insertRecords(List<String> deviceIds, List<Long> times, List<List<String>> measurementsList, List<List<String>> valuesList);
- Since type inference will increase the writing time, the efficiency of auto creating time series metadata through type inference is lower than that of auto creating time series metadata through specifying data type. We recommend users choose specifying data type in the frontend when possible.
Data types can be configured as BOOLEAN, INT32, INT64, FLOAT, DOUBLE, TEXT.
long_string_infer_type is used to avoid precision loss caused by using integer_string_infer_type=FLOAT to infer num > 2^24.
Encoding Type
The corresponding relationship between data types and encoding types is detailed in .