You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
One of the reasons why App loading is so slow is that some widgets interact with the DB during initialization.
One big offender in this area is the WorkChainSelector widget, which takes quite some time to load (and it gets worse with the number of workflows).
Describe the solution you'd like
It makes sense to first load the app and then load the workflow selector in the background.
I have already implemented this in my Atmospec app and it works great (and the code change is small). Please see this PR
Describe alternatives you've considered
An alternative would be to improve the widget so that it does not load all the workflow at once. But then we would need to end some kind of filtering based on a date (and possibly other parameters). That's definitely something to look at in the future.
CC @unkcpz this is what I mentioned on the call today. I thought I have already created this issue but apparently not. :-)
The text was updated successfully, but these errors were encountered:
Hi, @superstar54, #473 is not what @danielhollas mentioned to load the selector after UI I guess. In his PR, he added a widget that only refreshes after the button is clicked. I reopen it, we can close it if we did the benchmark and confirm after your changes the loading time is negligible.
Is your feature request related to a problem? Please describe.
One of the reasons why App loading is so slow is that some widgets interact with the DB during initialization.
One big offender in this area is the WorkChainSelector widget, which takes quite some time to load (and it gets worse with the number of workflows).
Describe the solution you'd like
It makes sense to first load the app and then load the workflow selector in the background.
I have already implemented this in my Atmospec app and it works great (and the code change is small). Please see this PR
ispg-group/aiidalab-ispg#216
Describe alternatives you've considered
An alternative would be to improve the widget so that it does not load all the workflow at once. But then we would need to end some kind of filtering based on a date (and possibly other parameters). That's definitely something to look at in the future.
CC @unkcpz this is what I mentioned on the call today. I thought I have already created this issue but apparently not. :-)
The text was updated successfully, but these errors were encountered: