fga-eps-mds/2020.1-stay-safe-front-end

Insert SP coordinates in frontend

Closed this issue · 4 comments

Issue Description

Use the SP heat map generating functionality and monitore time spent to generate the full map.

Run coordinates crawler in secretary-service and save output directly in frontend, use this data to build heat map, in the same way DF is made.

Run the same functionality and report performance increase when doing this refactoring. If substantial try to generalize methods to use them both in DF and SP heat map.

Additional context

For more information you can check issue Get SP cities coordinates.

Tasks:

  • Monitore time before changes
  • Save coordinates in frontend and delete the request to get coordinates
  • Monitore time after changes
  • Generalize code if needed

The time before changes is estimate in 55 seconds.

The time after changes is estimate in 25 seconds.

@lboaventura25 let's keep json at the front then. It's still have a high time, but the improvement was quite significant