hi there, is influxdb suitable for the following type of data? if so, could you please give me some hints on how shall I store them in order to query them efficiently? thanks
Here’s an interresting answer of Jack Zampolin posted on googlegroups
I would suggest using a forecast_id as a tag to differentiate the forecasts from one another. Then store the value_date as the timestamp. This is what I do when using holt_winters. In the future can you ask questions like this over on community.influxdata.com? We have moved the Q&A over there.
Okay, I just implemented this architecture, this seems great but there is only one little limitation : tags are stored like strings, so I didn’t find any easy way to get all data for the last forecast_id.
@Got Another option would be to store the forecasted data in its own measurement or database. That way the forecasted data has the exact same structure as the actual data. In that case you could get the most recent forecast with a LAST query,
SELECT last(value) as value, value_date, forecast_date FROM "forecasted_data"
Using a time value for a tag will not work very well as it means that you have unbounded cardinalitly for the tag which will eventually means that you have too many tags values for the database to handle well.