Skip to content

Defer dataloader integration #3639

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

Merged
merged 15 commits into from
Aug 29, 2024

Conversation

felipe-gdr
Copy link
Member

@felipe-gdr felipe-gdr commented Jun 20, 2024

This is a proposal for a quick and dirty solution for integrating @defer and data loaders, which will unblock further work.
This implementation will not try to optimise dispatches at all for deferred fields. It will simply always dispatch, which will inevitably result in more dispatches than necessary.
Dispatches for non-deferred fields will behave the same as before - i.e. in an optimal way.

@@ -126,73 +119,4 @@ class DataLoaderPerformanceWithChainedInstrumentationTest extends Specification
incrementalSupport << [true, false]
}

def "chainedInstrumentation: data loader will not work with deferred queries"() {
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved defer+data loader tests to its own file

}
"""

static def expectedInitialDeferredData = [
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved the defer tests into their own test class

@felipe-gdr felipe-gdr marked this pull request as ready for review August 27, 2024 04:34
@andimarek andimarek added this pull request to the merge queue Aug 29, 2024
Merged via the queue into graphql-java:master with commit fde25db Aug 29, 2024
1 check passed
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