Skip to content

Conversation

@takinbo
Copy link
Collaborator

@takinbo takinbo commented May 19, 2021

Most of the performance improvements in this PR are about reducing the amount of queries required to render a few slow pages and cutting back on rendering time for maps with a high number of data points.

dodumosu and others added 7 commits October 1, 2020 06:18
this commit attempts to speed up process data summaries by:
- removing a duplicate call to an expensive function
  (`apollo.submissions.utils.make_submission_dataframe`)
  in process data summaries
- replacing a call to `pandas.DataFrame.apply(pandas.Series)` in
  the above function since it is slow. instead, the hierarchy
  is computed as a JSON object in PostgreSQL and loaded into
  the `pandas.DataFrame` using `pandas.read_sql()`, then 'split'
  using `pandas.io.json.json_normalize()`
separate geoJSON layer to reduce loading
time and switch to canvas rendering to reduce
reondering time.
@takinbo takinbo merged commit 4c0b55b into nditech:develop May 19, 2021
@takinbo takinbo deleted the performance-improvements branch May 19, 2021 02:37
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

Successfully merging this pull request may close these issues.

2 participants