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

Add Mixed query execution mode #2129

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Conversation

kyri-petrou
Copy link
Collaborator

Not sure how common this is, but in some of our schemas we don't need use DataSources for some of the top-level query fields as they're not reused elsewhere in the schema, and therefor we don't need to make use of caching / batching. The downside is that unless we wrap them in DataSources, they won't be executed in parallel if the client requests multiple top-level fields.

With this change, we provide a QueryExecution.Mixed mode, where top-level fields are guaranteed to be executed in parallel (regardless if backed by a DataSource), and nested fields are executed in batched mode

@kyri-petrou kyri-petrou merged commit d6ec90f into series/2.x Feb 23, 2024
10 checks passed
@kyri-petrou kyri-petrou deleted the mixed-query-execution-mode branch February 23, 2024 03:46
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.

None yet

2 participants