You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've been working on a design for GSOC-304 and wanted to share my progress publicly.
Design
The integration uses two tables in the IoTDB 2.x Table Model:
telemetrytable (4 TAGs: tenant_id, entity_type, entity_id, key + 5 typed FIELD columns)entity_attributestable (adding scope TAG for client/shared/server attributes)This maps directly to ThingsBoard's
TimeseriesDao,TimeseriesLatestDao, andAttributesDaointerfaces.PoC
Working proof of concept validated against IoTDB 2.0.5:
https://github.com/PDGGK/thingsboard-iotdb-table-poc
The PoC runs 12 verified steps with assertions covering:
ORDER BY time DESC LIMIT 1), and findAllLatest (N-parallel queries)date_bin()+COALESCEmixed-type promotionALTER TABLE SET PROPERTIESAll steps include assertions that verify expected behavior.
Prior contributions
I've discussed the schema design with the mentor and incorporated feedback on the single-table vs per-entity-table tradeoff.
I also opened a cross-community discussion with the ThingsBoard project: thingsboard/thingsboard#15296
Happy to discuss the design with anyone interested.
Zihan Dai
GitHub: @PDGGK
Beta Was this translation helpful? Give feedback.
All reactions