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
I found out that load_reports (code) is requesting the reports' docs twice, the tech explanation is:
We use the search feature to return the reports (and docs) from the selected contact and its descendants (code)
The search feature uses the data record service (code) to get the docs. Makes a request to the user's local db
Then we take the ids from the search result and build the data for the report's header (code)
To build that header, we are retrieving the reports' docs again by using the data record service that also request the user's local db (but somewhere else in the code)
Instead of retrieving the same information twice, reports' docs, we can find a way to pass that information to the process that generates the reports' headers and void querying the user's local DB twice. And make sure we are not breaking anything else using the same processes.
The text was updated successfully, but these errors were encountered:
Describe the performance issue
Care Teams KR
Initial research done
I found out that load_reports (code) is requesting the reports' docs twice, the tech explanation is:
Instead of retrieving the same information twice, reports' docs, we can find a way to pass that information to the process that generates the reports' headers and void querying the user's local DB twice. And make sure we are not breaking anything else using the same processes.
The text was updated successfully, but these errors were encountered: