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

Fetch all objects to include in one query to improve performance #696

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Cotix
Copy link

@Cotix Cotix commented Jan 19, 2019

Using an include results in fetching every object individually, even when this is not necessary. This commit evaluates the given query and uses the resulting objects instead. If your data model is properly configured, the important objects will already be fetched in this query. This improves some of our endpoint time from > 1 minute to 1 second.

@ajite
Copy link

ajite commented May 9, 2019

Simple but efficient. It did improve the performance of my app and it did not break any of my tests.

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