fasttrackml icon indicating copy to clipboard operation
fasttrackml copied to clipboard

Aim UI takes a lot of time to load the search results when runs have large amount of runs/metrics

Open jgiannuzzi opened this issue 2 years ago • 2 comments

This is not yet a minimal reproducible example, but here goes:

  • 79 runs, 2261 metrics + 112 params per run, 50 values per metrics
  • go to Runs explorer
  • server replies in less than a second
  • UI freezes for multiple seconds before displaying the runs
  • scrolling to the right stutters a lot
  • memory and cpu usage are quite high for just some tabular data

Tasks:

  • [x] improve how the data gets loaded into the app model by calling getMetricsInitialRowData once per model instead of once per metric/param/tag per run — #437
  • [ ] create a proof of concept where data gets served as Arrow records by the backend, stream loaded in the frontend via Arrow, and then served via a virtual data grid — #438
  • [ ] based on the proof of concept, document more tasks to solve UI slowness here

jgiannuzzi avatar Sep 29 '23 17:09 jgiannuzzi

Let's evaluate the current status of the UI with the data load as described above.

dave-gantenbein avatar Jun 17 '24 13:06 dave-gantenbein

I've tried diagnosing this by making a k6 load script with the new parameters. I'm getting very slow responses from the server when searching for metrics, assuming we have lots (6000+) of different metrics logged with 15+ iterations for each:

Image

Pinging @suprjinx @dsuhinin for any thoughts about this

jescalada avatar Jul 31 '24 16:07 jescalada