Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data retention period (and resampling) #1582

Open
hibke opened this issue Mar 13, 2024 · 2 comments
Open

Data retention period (and resampling) #1582

hibke opened this issue Mar 13, 2024 · 2 comments

Comments

@hibke
Copy link

hibke commented Mar 13, 2024

Hi,

as there is no dateExpires for entities anymore with NGSI-LD (it is a NGSI-v2 feature), I have been looking how to define a retention duration (and also how to resample) temporal data and I found out that both are natively addressed by TimescaleDB, provided that hypertables are used. It is recommended to use hypertables instead of regular Postgres tables for storing time-series data, in order to take advantage of these features as well as all other Timescale features, including improved insert and query performance. (https://docs.timescale.com/getting-started/latest/tables-hypertables/ )

Therefore, I was wondering why Timescale DB tables are not created by Orion-LD as hypertables from the start, and whether you have a recommendation for managing data retention.

Could you please advise ?

@kzangeli
Copy link
Collaborator

ok, not really my table ...
I'll ask for help.
@wistefan ?

@kzangeli
Copy link
Collaborator

kzangeli commented Mar 22, 2024

FYI, we have approved "transient entities" in ETSI ISG CIM and the feature will be standard NGSI-LD in the next release (v1.9.1, planned for September, but I imagine it will get out later - we just released 1.8.1 a few days ago).

We also approved "transient attributes".
The field for this will be a non-reified "expiresAt": "<ISO8601 DateTime>", both on the toplevel (for the entity) and on attribute level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants