Jialin Qiao created IOTDB-193:
---------------------------------
Summary: Create metadata automatically in the insertion
Key: IOTDB-193
URL: https://issues.apache.org/jira/browse/IOTDB-193
Project: Apache IoTDB
Issue Type: New Feature
Reporter: Jialin Qiao
Setting storage group and creating time series can be troublesome when using
IoTDB in applications.
Let's look at the typical scenes:
The devices send messages to Kafka. Each message includes: factoryId, deviceId,
timestamp, s1_value, s2_value, s3_value.
The consumer of Kafka needs to consume the messages and organize the data into
an insert statement: "insert into root.factoryId.deviceId(time, s1, s2, s3)
values(timestamp, s1_value, s2_value, s3_value)"
Before inserting the data into IoTDB, the consumer needs to judge whether the
storage group and time series are created before, which is not convenient.
Typically, there are 3 ways to do that:
# Caching the storage group and timeseries created before in the consumer
# Query from IoTDB whether a storage group and timeseries exists
# Directly create metadata regardless of whether created before
Could IoTDB support creating metadata (at least time series) automatically when
receiving an insertion?
--
This message was sent by Atlassian Jira
(v8.3.2#803003)