core icon indicating copy to clipboard operation
core copied to clipboard

Graphs time out on large datasets

Open thunfischbrot opened this issue 10 years ago • 7 comments

Once the database has reached a significant number of entries graphs time out.

As an example see the Home Assistant demo right now:

image

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.

thunfischbrot avatar Feb 24 '16 12:02 thunfischbrot

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.

balloob avatar Feb 24 '16 15:02 balloob

I suggest that

  1. the web interface should be aware of the timeout and communicate it to the user, if only with a sad smiley face
  2. 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.

thunfischbrot avatar Mar 02 '16 12:03 thunfischbrot

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

  1. the web interface should be aware of the timeout and communicate it to the user, if only with a sad smiley face
  2. 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 .

balloob avatar Mar 02 '16 15:03 balloob

If I understand correctly, migrating to influxdb solved this, does it still occur on recent versions?

Spartan-II-117 avatar Dec 14 '16 08:12 Spartan-II-117

@Spartan-II-117 the history and logbook support is still based on the recorder component which only works with SQL databases.

balloob avatar Dec 17 '16 05:12 balloob

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:

balloobbot avatar Mar 17 '17 15:03 balloobbot

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 👍

balloobbot avatar Mar 30 '17 15:03 balloobbot