Add performance instrumentation, caching, and parallelization#509
Merged
erikdarlingdata merged 2 commits intodevfrom Mar 10, 2026
Merged
Add performance instrumentation, caching, and parallelization#509erikdarlingdata merged 2 commits intodevfrom
erikdarlingdata merged 2 commits intodevfrom
Conversation
- Port MethodProfiler and QueryLogger from Dashboard to Lite for identifying slow methods and DuckDB queries (500ms threshold, daily rotating logs with 7-day cleanup) - Add 5-minute server inventory cache to both Dashboard and Lite to eliminate 12s repeat loads on FinOps tab revisits - Parallelize LoadPerServerDataAsync (4 sub-loads) and LoadUtilizationAsync (4 inner queries) with Task.WhenAll in both Dashboard and Lite - Add query timing instrumentation to 7 LocalDataService methods - Fix Plan Viewer PreviewMouseDown stealing focus from ComboBox and DataGrid in Dashboard (complements Lite fix from #508) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Task.WhenAll didn't improve performance (same DuckDB read lock bottleneck) and risks concurrency issues at scale. Reverted to sequential awaits in LoadPerServerDataAsync and LoadUtilizationAsync in both Dashboard and Lite. Caching and instrumentation retained. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LoadPerServerDataAsync(4 sub-loads) andLoadUtilizationAsync(4 inner queries) now useTask.WhenAllin both appsLocalDataServicemethods for DuckDB query performance visibilityPreviewMouseDownno longer steals focus from ComboBox/DataGrid (complements Lite fix from Fix ComboBox focus steal in plan viewer + DOP 2 skew threshold #508)Test plan
🤖 Generated with Claude Code