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 performance of /deployments endpoint #1793

Merged
merged 1 commit into from
Oct 20, 2017

Conversation

beyhan
Copy link
Member

@beyhan beyhan commented Sep 22, 2017

  • use Sequel.eager to get deployments association which avoids n+1 queries.
  • introduces default sort order on teams and stemcell association
    of deployments model. It's not possible to sort eager queries.
    With eager_graph it is possible but compared to eager it was eight times
    slower.

#150958551

- use Sequel.eager to get deployments association which avoids n+1 queries.
- introduces default sort order on teams and stemcell association
  of deployments model. It's not possible to sort eager queries.
  With eager_graph it is possible but compared to eager it was eight times
  slower.

[#150958551](www.pivotaltracker.com/story/show/150958551)

Signed-off-by: Beyhan Veli <[email protected]>
@cfdreddbot
Copy link

Hey beyhan!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

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.

4 participants