Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Now in IoTDB, paths of time series are in the form of String. The path of a time series contains the information of its storage group, device, and measurement.
However, the fact shows that there may be overlaps between paths. For example, time series belonging to the same storage group sg123 must be prefixed with the name of sg123. It can cause the problem of wasted space. By contrast, Long takes much less space than String.
What's worse, paths are usually put into the Map structure to carry out other operations. It can cause the problem of wasted time. By contrast, when carrying out operations of put, get, and remove, Map<Long, Integer> performs better than Map<String, Integer>.
Therefore in IoTDB, paths in the form of String should be replaced by IDs in the form of Long.
Attachments
Attachments
Issue Links
- is related to
-
IOTDB-85 Using a long ID to represent device and sensor (and Path)
- Open