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

Thin out datasource by aggregation over time period #411

Open
kralan opened this issue Sep 30, 2024 · 1 comment
Open

Thin out datasource by aggregation over time period #411

kralan opened this issue Sep 30, 2024 · 1 comment
Assignees
Labels
enhancement Feature request

Comments

@kralan
Copy link

kralan commented Sep 30, 2024

Dear maintainer, this is only a wishlist item.

If possible, please add functionality to clean a data source representing a time series by aggregating over a time period.

Use case: I have data sources of environmental data I add via the API. I sample the data every 10 minutes. This much detail is interesting only a few days back. After that, I'd like to keep the data for long-term statistics, but I don't need that much detail any more.

Feature request: I'd like to have a cleanup filter like: For data older than a cutoff point in time (eg 7 days ago), keep only one data point per period (eg of 3 hours) by aggregating all data that fall into one such period by an aggregation function (eg average).

I can solve this by writing a query that operates directly on the database, but I thought this might be a good enhancement for the analytics app and it can be useful for any time-series data. Maybe this can be even further generalized to have aggregation intervals other than time.

@Rello
Copy link
Owner

Rello commented Sep 30, 2024

Hi,
yes, this is a valid idea. in general to have an aggregation of values across time.
I am not sure at the solution yet. One idea might be a datasource on repots itself. e.g. have the data in detail and then load &delete the aggregated data within Analytics.

This would make it flexible in a way that the logic does not need to be implemented in various data source logic parts

...lets see

@Rello Rello self-assigned this Sep 30, 2024
@Rello Rello added the enhancement Feature request label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request
Projects
None yet
Development

No branches or pull requests

2 participants