Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a few performance improvements #808

Merged
merged 7 commits into from
May 19, 2021

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