Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-164

Convert Path(String) to ID(Long)

    XMLWordPrintableJSON

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

        1. path.png
          10 kB
          Yanzhe An
        2. Test.java
          4 kB
          Xiangdong Huang
        3. tmp.java
          3 kB
          Lei Rui

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ayz15 Yanzhe An
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: