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
Upon initial site load, we normally aggregate data from the first admin level (Region) to the last level (Station). This initial process is quite heavy for the front end code since we need to iterate through several reports which include:
centers and stations report
candidates list
forms list
results report
offices list
regions list
The largest report so far is the forms list report followed by the results report, which both have a combination of parliamentary and presidential data. As a temporary solution, we have added logic that aggregates data from the highest to the lowest admin level and set it to local storage, meaning the only time the user will experience latency is on initial load, and when drilling down to the other levels there's no significant latency experienced. We need to find a way to improve the initial load performance, maybe by splitting the files based on the race type, or have this data pre-aggregated from the tally system.
The text was updated successfully, but these errors were encountered:
Upon initial site load, we normally aggregate data from the first admin level (Region) to the last level (Station). This initial process is quite heavy for the front end code since we need to iterate through several reports which include:
The largest report so far is the forms list report followed by the results report, which both have a combination of parliamentary and presidential data. As a temporary solution, we have added logic that aggregates data from the highest to the lowest admin level and set it to local storage, meaning the only time the user will experience latency is on initial load, and when drilling down to the other levels there's no significant latency experienced. We need to find a way to improve the initial load performance, maybe by splitting the files based on the race type, or have this data pre-aggregated from the tally system.
The text was updated successfully, but these errors were encountered: