Urgent.News

What's breaking now, across thousands of outlets.

Tech

Model IoT Data Before You Store It: Device, Measurement, Timestamp

When an IoT payload lands in a database, it is tempting to focus on the value first. 72.4 But a value alone is not yet useful time-series data. Before you choose a schema, connector, or query pattern, you need to know: what produced the value; what the value measures; and when that observation happened. This article uses Apache IoTDB terminology to make that model concrete. It is intentionally a…

When an IoT data point is stored in a database, it is important to consider more than just the value itself. Before selecting a schema, connector, or query pattern, the origin of the data, what it measures, and when it was recorded should be determined. This article uses Apache IoTDB terminology to illustrate this modeling process.

There are three key elements to consider:

1. Device: The real-world object that generated the measurement. This could be a physical device, measurement apparatus, or collection of sensors. An engineer should be able to identify the source of a signal change, not just the generic message.

2. Timeseries: The physical quantity being measured, such as temperature, voltage, current, speed, vibration, etc. A single device can produce multiple timeseries, each with its own unit, frequency, data type, and purpose.

3. Data point: The actual measurement value recorded at a specific timestamp. This answer the question of "what was observed and when?"

Before defining a schema, a modeling worksheet can be used to answer these questions for each signal. This exposes any gaps in understanding early on. Collection frequency should also be recorded as part of the signal's context, as different signals produce different amounts of temporal detail.

It is important to distinguish between the time the measurement was taken and the time the data is received by the system. This information should be explicitly stated in the schema.

Apache IoTDB supports both tree and table models, but the core concepts remain the same. Before choosing a specific model, the data and the questions that need to be answered should be determined. A pre-ingestion checklist can be used to ensure that every measurement can be traced to a specific device, measured quantity, timestamp, unit, type, and collection frequency. This makes future queries, trend comparisons, and troubleshooting more interpretable.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

JB Financial-BNK Merger Debate Ends as JB Expands Overseas and Non-Bank Businesses

The debate over a potential merger between JB Financial Group and BNK Financial Group has effectively come to an end, shifting attention toward JB Financial’s ongoing efforts to expand its overseas…

  • JB Financial Group ends merger debate with BNK Financial Group.
  • JB Financial expands overseas and non-bank businesses.
  • JB Woori Capital acquires Indonesian finance company PT KB Bukopin Finance.

More from Friday 11 September →