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

Improve data loading strategy upon selecting a project #376

Open
annehaley opened this issue Apr 24, 2024 · 0 comments
Open

Improve data loading strategy upon selecting a project #376

annehaley opened this issue Apr 24, 2024 · 0 comments

Comments

@annehaley
Copy link
Collaborator

When a project is selected and the main UI is loaded, a lot of requests are sent to load all subjects for a dataset, all original data objects for each subject, groomed shapes for all original data, all particles objects, etc. The time to load all of these objects was negligible on smaller test datasets, but now that we've tested larger datasets with over 40 subjects, this load time reduces interactibility of the other UI components. Even if the data to render is ready and the load bar has gone away, the high traffic from all the other requests stalls reactivity in the Info Tab (loading landmarks and constraints) and the Analyze and DeepSSM tabs (loading results).

We should improve the data loading strategy by taking a lazy-load approach, only making data requests when they are needed. The initial data load upon selecting a dataset should only include the list of subjects, the first original data object to render by default, and test requests for one groomed shape, one particles object, and one reconstructed sample to determine whether those layers should be available for the user to enable. The rest of the data should only be fetched when needed for rendering or displaying results.

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

No branches or pull requests

1 participant