Похожие чаты

Hey guys. I'm working on an IoT platform. We are

using mariadb/mysql as our main database in a somewhat monolithical application.
We are storing sensor data in a single table (database within a database you could say). Since we want to abstract away device data to equalize schema across all protocols.

To also provide historical data, we have a report table. But since the name of the fields is flexible, depending on the device and its configuration, we found no other way than naming the fields 1 through 30. With a foreign key to Device.

How would you go about this? Right now our application logic needs to take care of joining device parameter data to the history table. So each column has its own relation to a device parameter. Should we now just double the amount of fields and add 1_DeviceParameterID? How would you go about this?

2 ответов

17 просмотров

Rdmbs are not great for historical data and for data that has a flexible schema. I would suggest you to see other time series oriented dbms like influxdb.

Misan- Автор вопроса
Alessandro
Rdmbs are not great for historical data and for da...

how do you bridge the foreign keys on a foreign database? :O

Похожие вопросы

Обсуждают сегодня

Есть рассчет для Таллинна? https://x.com/dr_enderlin/status/1784581592003850496
Vladimir Ivanov
23
а зачем этот вопрос для удаления из чата?
Mёdkinson Medvezhkin
63
Добрый день. Хочу сделать отрисовку по команде на панели. Почему-то рисуется только при втором вызове. С чем может быть связано, не подскажете? procedure TForm1.FormDblClick(...
Kirill Filippenok
20
Any dog on Fantom ?
Bitcoin Magic
19
Добрый день Как поставить vscode из флэтпака как дефолтный редактор в filezilla?
Daniel
18
Интересно, а в чём прикол мак оси?
Лисицка
16
main.c #include <fenv.h> #include <stdio.h> int main(void) { constexpr float f = 23.0f; constexpr float g = 33.0f; fesetround(FE_TOWARDZERO); constexpr float...
mito 😼
2
Всем доброго дня! Подскажите может кто использовал связку Pagebuilder + Clientsetting. Сами параметры с типом pagebuilder в модуле Clientsetting работают нормально, можно такж...
Александр Добриков
12
using next image component with s3 image: "url" parameter is valid but upstream response is invalid code: <Image fill src={s...
Fasil
3
Tax his land, Tax his bed, Tax the table At which he's fed. Tax his work, Tax his pay, He works for peanuts Anyway! Tax his cow, Tax his goat, Tax his pants, Tax his coat....
Forge
5
Карта сайта