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

Optimize Activity query on index page #2034

Closed
mbeacom opened this issue Aug 20, 2018 · 0 comments
Closed

Optimize Activity query on index page #2034

mbeacom opened this issue Aug 20, 2018 · 0 comments
Assignees
Labels
backend This needs backend expertise. bounties enhancement This is a feature to be enhanced or improved.

Comments

@mbeacom
Copy link
Contributor

mbeacom commented Aug 20, 2018

Currently, get_activity is performing multiple queries to fetch bounty related objects to Activity and filter down to only mainnet bounty activity.

We should select_related on this relation to avoid multiple queries.

@mbeacom mbeacom added enhancement This is a feature to be enhanced or improved. backend This needs backend expertise. bounties labels Aug 20, 2018
@mbeacom mbeacom self-assigned this Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend This needs backend expertise. bounties enhancement This is a feature to be enhanced or improved.
Projects
None yet
Development

No branches or pull requests

1 participant