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

Super slow trend when selecting time span of 10 and 20 minutes #148

Open
ljamt opened this issue Mar 6, 2020 · 2 comments
Open

Super slow trend when selecting time span of 10 and 20 minutes #148

ljamt opened this issue Mar 6, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@ljamt
Copy link
Member

ljamt commented Mar 6, 2020

No description provided.

@cesarcarc cesarcarc self-assigned this Apr 15, 2020
@cesarcarc cesarcarc removed their assignment Apr 24, 2020
@cesarcarc cesarcarc changed the title Super slow trend when selecting time span of 10 and 20 minutes Super slow trend when selecting time span of 10 and 20 minutes [client] May 18, 2020
@cesarcarc cesarcarc transferred this issue from another repository May 18, 2020
@cesarcarc
Copy link
Contributor

cesarcarc commented Jun 2, 2020

It is most likely related, but over time the application slows down. One scenario I have identified:

Action:

  • Load House demo
  • Let the application run as fast as possible (RT off)
  • Open one of the trends, select timespan to be 10min.
  • Let the application run for some time (3k seconds). After that, navigate to a model, try to override a value.

Results:

  • Application as a whole is quite slow (not ok)
  • Message size via websockets is around 2.2MB, even though the user is not in the trend view.

Action 2:

  • Delete the plots and try to navigate

Result 2:

  • Application is quick again (ok)

Notes:
I am removing the label "Client" as this is most likely connected to server-go. We should consider some sort of optimization such that we only receive trend data, when the trend is open.

@cesarcarc
Copy link
Contributor

Note 2: By checking the plot "Room temp trend" (from House configuration), the websockets message size is approximately (for each timespan):

  • 10s: 37kb
  • 30s: 109kb
  • 1m: 217kb
  • 5m: 1.1MB
  • 10m: 1.6MB
  • 20m: 2.2MB

One initial quick fix would be to reset to 10s whenever navigating away from the trend.

@cesarcarc cesarcarc changed the title Super slow trend when selecting time span of 10 and 20 minutes [client] Super slow trend when selecting time span of 10 and 20 minutes Jun 2, 2020
@cesarcarc cesarcarc added bug Something isn't working and removed client labels Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants