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

massively speeds up the grants contribution api call #9642

Merged
merged 3 commits into from
Oct 30, 2021

Conversation

owocki
Copy link
Contributor

@owocki owocki commented Oct 29, 2021

Description

massivlye speeds up grants.views.grant_details_contributions

note there is a tradeoff here where we have to remove some of the params from the result

Refers/Fixes

my sad view on on https://app.datadoghq.com/apm/traces?query=env%3Aprod%20service%3Adjango%20%40duration%3A%3E%3D4.5s&cols=core_service%2Ccore_resource_name%2Clog_duration%2Clog_http.method%2Clog_http.status_code&historicalData=true&messageDisplay=inline&sort=desc&streamTraces=true&start=1635521435028&end=1635525035028&paused=false

Testing

tested locally, brings the call on http://localhost:8000/grants/v1/api/grant/12/contributions?limit=100 down from 30s to 0.2s

Copy link
Contributor

@gdixon gdixon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!! Awesome work 🚀 😁

@gdixon gdixon merged commit 5677d81 into stable Oct 30, 2021
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