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

Weed out duplicate database requests in templates #494

Closed
oliverroick opened this issue Jul 22, 2016 · 1 comment
Closed

Weed out duplicate database requests in templates #494

oliverroick opened this issue Jul 22, 2016 · 1 comment
Assignees
Milestone

Comments

@oliverroick
Copy link
Member

oliverroick commented Jul 22, 2016

Templates currently create a lot of duplicate database requests. For instance, every time we call something like {{ project.organization.name }} the organization object is queried from the database. Model object that are used multiple times in a template should be queried once and added to the view's template context.

@seav seav modified the milestone: Sprint 8 Aug 11, 2016
@wonderchook wonderchook modified the milestones: Sprint 9, Sprint 8 Aug 18, 2016
@wonderchook wonderchook modified the milestones: Sprint 10, Sprint 9 Sep 29, 2016
@seav
Copy link
Contributor

seav commented Oct 20, 2016

I suggest that a follow-up action to help reduce database accesses is to also resolve #572. If we convert many modals into pages, then we don't need to access the database to render the data hiding behind the modals that can't be interacted with anyway.

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

No branches or pull requests

3 participants