Search code examples
databasetime-seriesapache-iotdb

How to change the unit of timestamp from milliseconds to microseconds in Apache IoTDB?


I am new to Apache IoTDB, noticing that default unit of time series timestamps time are in milliseconds. I wonder if it can be changed to nano-second or etc... how can I achieve this?

Document should have included it, but I did not find it yet.


Solution

  • I think you will have to reconfigure IoTDB

    • in IoTDB config file(typically iotdb-engine.properties) you can adjust timestamp precision
    • the parameter might be called time_precision | time_unit | add it new
    • time_precision = us or time_unit = us
    • save the configuration and restart the IoTDB service

    Ps, specific configuration options and names depend on versions