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
At the moment, N+1 queries are being triggered when fetching entries from the database. In remoteSync function, the mapping forces an individual query for each fetched record, which results in a lot of processing time. This situation becomes really annoying in environments such as Nigeria, which at the moment accounts for 70.000+ AntibioticConsumptionStats.
We can see in the picture taken from the Network tab in the dev tools that fetching data from the server only takes about 1 second, whereas resolving the queries takes 10 times more time: 10+ seconds.
Solution involves turning that mapping of individual queries into a single one that creates or updates all the entries at once. Double check that synchronization keeps working after the fix, because the process has its quirks and it easily gets broken
The text was updated successfully, but these errors were encountered:
At the moment, N+1 queries are being triggered when fetching entries from the database. In remoteSync function, the mapping forces an individual query for each fetched record, which results in a lot of processing time. This situation becomes really annoying in environments such as Nigeria, which at the moment accounts for 70.000+
AntibioticConsumptionStats
.We can see in the picture taken from the Network tab in the dev tools that fetching data from the server only takes about 1 second, whereas resolving the queries takes 10 times more time: 10+ seconds.
Solution involves turning that mapping of individual queries into a single one that creates or updates all the entries at once. Double check that synchronization keeps working after the fix, because the process has its quirks and it easily gets broken
The text was updated successfully, but these errors were encountered: