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

Dashboard takes ~1-2 secs for initial load, optimise initial view #453

Open
anchit-chandran opened this issue Dec 31, 2024 · 0 comments
Open
Assignees

Comments

@anchit-chandran
Copy link
Contributor

Gut feeling for reason is because I'm doing a lot of compute inside the dashboard view (run all KPI calculate methods, then get all in the right format to send to all the htmx partials which will render the data in charts)

Reason is because CalculateKPIS needs the self.patients attr set, which is currently only done via one of the calculate_kpis_for_XXX methods, all of which set the appropriate .patients and then run all calculation methods. Instead, will refactor to setting pts in a separate method, so we can offload calculating only individual kpis in relevant htmx endpoints

@anchit-chandran anchit-chandran self-assigned this Dec 31, 2024
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