Skip to content

perf(dashboard): publish one board per Server Dashboard refresh - #4476

Merged
datlechin merged 2 commits into
mainfrom
perf/dashboard-one-board
Nov 24, 2026
Merged

datlechin merged 2 commits into
mainfrom
perf/dashboard-one-board

Conversation

@datlechin

Copy link
Copy Markdown
Member

Summary

  • sessions, metrics, slowQueries and panelErrors become one DashboardBoard, set once per refresh and only when its content changed. The first load still publishes panel by panel.
  • isRefreshing and lastRefreshDate move to DashboardRefreshStatus, observed by the toolbar alone. The spinner no longer redraws the panes.
  • updateNSViewController sets the metrics and slow query roots only when their inputs changed. The sessions pane observes the model itself and is no longer set again.
  • Before: up to 7 model publishes per refresh, each redrawing every pane (quiet pass 2, PostgreSQL, 5 s refresh, 60 s: publishes and graph work 60.6% of 292 main samples). After: 1 model publish per refresh, 0 for the spinner and clock. Not re-profiled.
  • Tests moved to the new setters: ServerDashboardSplitViewTests refresh case (board), ServerDashboardGridTests (board.sessions), ServerDashboardViewModelTests selection cases (board) and "stopAutoRefresh clears the refreshing flag" (refreshStatus).

Test plan

  • New: status stays off the model's objectWillChange; setting the board publishes once; board content ignores slow query row ids.
  • verify.sh test on the three dashboard suites: 43 passed.

Refs #4462 (WI8)

@datlechin
datlechin enabled auto-merge (squash) November 24, 2026 12:36
@datlechin
datlechin merged commit ddf5288 into main Nov 24, 2026
11 checks passed
@datlechin
datlechin deleted the perf/dashboard-one-board branch November 27, 2026 16:37
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.

1 participant