Hi,
We run a monitoring program where we have multiple sensors in different locations. The sensors in each location are logged and the data are stored in files. Each sensor might produce multiple variables of different types (bool, integer, float, …). So the logger file consists of a datetime column and several variable columns of different data type. Some loggers measure at 1 measurement/minute while other loggers sample at 20Hz.
Now, I am wondering if it would possible to store our data in a Timescaledb system. A proposed design, I read in earlier topics, consists of a table with sensor readings (columns: timestamp, sensor_id, sensor_value) and a table with sensor metadata (sensor_id, location, manufacturer, more metadata…). But as mentioned earlier, each sensor might measure different metrics (e.g. sensor 1: (pressure, temperature, sensor flag); sensor 2: (wind vector, inclination); sensor 3: etc. ). So, In order to capture this heterogeneity, you could add a column to the “sensor readings” table which specifies the metric plus extra tables for each data type. On one hand this solution would make querying of data and metadata easy. On the other hand it doesnt seem terribly efficient?
In fact it seems I just need unique column names which could be related to metadata over a given valid time range. But I guess that is not possible in a SQL framework?
Thanks!