Graphs time out on large datasets
Once the database has reached a significant number of entries graphs time out.
As an example see the Home Assistant demo right now:

While https://github.com/balloob/home-assistant/issues/1337 might help it's not the real solution. If your sensor sends data frequently enough graphs might fail after only one or two days, as they did for me with a polling frequency of once a day, and depend very much on your host machines resources I assume.
The demo is not hitting a database so that one is broken with a different reason.
Sqlite isn't the best when things get big. Another problem is sensors that report very aggressive and thus generate a lot of state changes
On Wed, Feb 24, 2016, 04:48 thunfischbrot [email protected] wrote:
One the database has reached a significant number of entries graphs time out.
As an example see the Home Assistant demo https://home-assistant.io/demo/ right now:
[image: image] https://cloud.githubusercontent.com/assets/583358/13285770/d6f19812-dafc-11e5-8b4a-061e99b56285.png
While #1337 https://github.com/balloob/home-assistant/issues/1337 might help it's not the real solution. If your sensor sends data frequently enough graphs might fail after only one or two days, as they did for me with a polling frequency of once a day, and depend very much on your host machines resources I assume.
— Reply to this email directly or view it on GitHub https://github.com/balloob/home-assistant/issues/1389.
I suggest that
- the web interface should be aware of the timeout and communicate it to the user, if only with a sad smiley face
- regardless of the amount of data in the database it should be possible to view the history This might be accomplished by only selecting a limited number of data points or a limited amount of hours/days.
Right? I would look into it if you agree.
I agree that the frontend should show something if data loading fails.
On Wed, Mar 2, 2016, 04:56 thunfischbrot [email protected] wrote:
I suggest that
- the web interface should be aware of the timeout and communicate it to the user, if only with a sad smiley face
- regardless of the amount of data in the database it should be possible to view the history This might be accomplished by only selecting a limited number of data points or a limited amount of hours/days.
Right? I would look into it if you agree.
— Reply to this email directly or view it on GitHub https://github.com/balloob/home-assistant/issues/1389#issuecomment-191229172 .
If I understand correctly, migrating to influxdb solved this, does it still occur on recent versions?
@Spartan-II-117 the history and logbook support is still based on the recorder component which only works with SQL databases.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem 👍