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

Fix performance issue on the status page #522

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Conversation

frouioui
Copy link
Member

@frouioui frouioui commented Apr 2, 2024

Fixes #521

[GIN] 2024/04/02 - 14:53:00 | 200 |  788.178958ms |             ::1 | GET      "/api/recent"
[GIN] 2024/04/02 - 14:53:01 | 200 |   94.367042ms |             ::1 | GET      "/api/recent"
[GIN] 2024/04/02 - 14:53:02 | 200 |   93.952292ms |             ::1 | GET      "/api/recent"
[GIN] 2024/04/02 - 14:53:03 | 200 |  182.713041ms |             ::1 | GET      "/api/recent"
[GIN] 2024/04/02 - 14:53:04 | 200 |  179.287459ms |             ::1 | GET      "/api/recent"

Comment on lines -469 to -471
if exec.TypeOf != "micro" {
macroResult, err := client.Select("SELECT m.vtgate_planner_version FROM macrobenchmark m, execution e WHERE e.uuid = m.exec_uuid AND e.uuid = ? LIMIT 1", eUUID)
if err != nil {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were not even rendering the query planner version on the web page, so it is totally fine to remove these extra db calls.

@frouioui frouioui merged commit 222c018 into main Apr 2, 2024
10 of 12 checks passed
@frouioui frouioui deleted the speedup-status-page branch April 2, 2024 21:29
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

Successfully merging this pull request may close these issues.

Very slow status page
1 participant