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

The dashborad loading circle keeps for about 10 minutes #37

Open
rust-kotlin opened this issue Apr 9, 2024 · 5 comments
Open

The dashborad loading circle keeps for about 10 minutes #37

rust-kotlin opened this issue Apr 9, 2024 · 5 comments

Comments

@rust-kotlin
Copy link

I think it is because the row size is too large. My web application gets about 150k requests, now approximately 300k for 2 days. It took 10 minutes for me to get data from the api.

And I found that the api directly return all these requests data, which may be reason for the front-end dashboard to load so slowly. As it has to analyzed 30k rows data.

Maybe summarize the traffic data hour by hour, only count the total count of every endpoint to another database table might be a more wise idea to send the preprocessed and simplified data to dashboard and api? Hoping for your reply!😊

@tom-draper
Copy link
Owner

Dashboard/server performance is definitely an ongoing issue. Having said that, I've never seen it take longer than 60 seconds with ~1 million requests logged, so something sounds wrong with 10 minutes. I would avoid refreshing the dashboard repeatedly as that can increase load times further.

The bulk of the delay is with the database read, rather than processing the results, even though the table is indexed as well as possible. I'm always looking for ways to improve performance, only loading partial data may have to be the way forward, but it would only pass the long loading times on to the moment you change the time period within the dashboard. It could possibly continue to load more requests in the background. It doesn't help that the server is underpowered but it's the only way to keep the service free.

@JasonLovesDoggo
Copy link
Contributor

I have the same issue except mine ends with a 504 Gateway Time-out

@tom-draper
Copy link
Owner

@JasonLovesDoggo Should be working better now. You may need to clear browser cache with Ctrl+F5

@JasonLovesDoggo
Copy link
Contributor

@JasonLovesDoggo Should be working better now. You may need to clear browser cache with Ctrl+F5

Yep! I was able to access it fine now!
What did you change?

@tom-draper
Copy link
Owner

@JasonLovesDoggo The server was sometimes running out of memory to load requests. I've changed it to load dashboard data in chunks over multiple requests, so hopefully shouldn't be an issue from now. Thanks for reporting it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants