Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Done
-
None
-
2021-10-DragonGate
Description
IoTDB support timeseries and aligned timeseries, in other words, unary measurement and vector measurement.
Currently, the insert plans of these two types of timeseries is distinguished by a "boolean isAligned" field and share the same interface and code. Thus the related code will be confusing and difficult to understand.
For example. While MManager is processing the InsertPlan, the path and measurement list provided by the plan represent different meaning.
- While process unary measurement, the prefix path means the entity path and the measurement list represents different measurement of target timeseries.
- While process vector measurement, the prefix path represents the aligned timeseries path and the measurement list represents the sub measurement of target aligned timeseries.
Thus, it's better to process aligned timeseries insert plan individually and the code will be more understandable.