【问题标题】:How to set timestamps as primary key to avoid overwriting in Apache IoTDB?How to set timestamps as primary key to avoid overwriting in Apache IoTDB?
【发布时间】:2022-12-27 10:38:04
【问题描述】:

This is the first time I use Apache IoTDB , and I would like to ask a question on how to achieve this function: I want to put the data of multiple devices with the same parameters in one table. The timestamps of the data of different devices may be the same,so if I directly input the data in one table , the ones with the same timestamps will be overwritten. I refer to relational database settings and want to set timestamps primary key like other parameters to avoid overwriting,do not know if this is posssible or if there are other ways to deal with overwriting?

【问题讨论】:

    标签: apache-iotdb


    【解决方案1】:

    This can be achieved by using different names of virtual time series in Apache IoTDB. Adding align by device can set not to put the columns with the same timestamp into a row.

    【讨论】:

      猜你喜欢
      • 2022-12-28
      • 2022-12-26
      • 2022-12-01
      • 2022-12-01
      • 2022-12-02
      • 2022-12-19
      • 2022-12-19
      • 2022-12-27
      • 2022-12-28
      相关资源
      最近更新 更多