Yanzhe An created IOTDB-164: ------------------------------- Summary: Convert Path(String) to ID(Long) Key: IOTDB-164 URL: https://issues.apache.org/jira/browse/IOTDB-164 Project: Apache IoTDB Issue Type: Improvement Reporter: Yanzhe An Attachments: path示例.png
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. !path示例.png! 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*. -- This message was sent by Atlassian JIRA (v7.6.14#76016)