-
Notifications
You must be signed in to change notification settings - Fork 16
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
ChainAPI should support multiple resolutions of data for querying large timespans #28
Comments
Influx support "continuous queries" to maintain data aggregations. I think a reasonable approach is to maintain a few different resolutions of data in the database:
For each of these aggregation periods we'll store a few different aggregations:
@bmayton @d0nd3r3k @dramsay9 @slash6475 does this seem like it captures your use cases? A few other random issues/ideas:
@ellachao does this seem pretty reasonable to you? |
That works perfectly for me. |
Sounds useful to me! Agreed on average weighting by count.
The other addition that I'd nominate (that I'm not sure if there is an elegant solution for atm) is throwing a known timestamp of first/last readings for each sensorData somewhere in there.
|
@dramsay9 do you mean first/last timestamps for the aggregate timeslices? |
@slash6475 see #78. So we have the back-end stuff running now to store the data in 1h, 1d, and 1w aggregates, but we don't have an API for it yet. Here's what I'm thinking: Option 1Add optional URL parameters to the
In the new scheme it would be:
where
The data returned would be a list of timestamp/value pairs, just like the current raw data. Option 2Currently we have the
where
Feedback welcome. References and General InfoBoth of these options make the most sense when combined with adding user-supplied time ranges (#80) We'll want to add support to When parsing these links in the server, we should just ignore anything the client leaves inside of braces, so that template-unaware clients can keep using the links as opaque strings IETF RFC for templated links Looks like there are a couple python libraries for dealing with templated links: |
After meeting with @ellachao today:
|
Now it's a little slow for the client to fetch the datas of a month or even a year, is it possible to speed up the request process and maybe the client can choose how much details of data they want to acquire.
The text was updated successfully, but these errors were encountered: