You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I'm wondering, how does GraphQL.NET handle batch queries under the hood? Does it execute each query in parallel using separate .NET tasks/threads ? Or sequential? And: Can this behavior be configured somehow?
In my opinion the following strategy would be ideal:
Queries should execute in parallel
Mutations shold execute sequentially in the order they were specified in the request (allows a mutation to depend on a preceeding mutation)
Thanks for clarifying.
Marco
The text was updated successfully, but these errors were encountered:
Each query (fields inside this query) is executed in parallel. Each mutation sequentially. It meets the GraphQL specification.
For request batching no behavior described. Howewer this issue was posted. Now batched queries are executed sequentially but this topic specific to server repo, not to this project.
Yes. You can override DocumentExecuter.SelectExecutionStrategy. For request batching there are no (yet) options in the server repo to configure parallel/sequential behaviour.
Hi
I'm wondering, how does GraphQL.NET handle batch queries under the hood? Does it execute each query in parallel using separate .NET tasks/threads ? Or sequential? And: Can this behavior be configured somehow?
In my opinion the following strategy would be ideal:
Thanks for clarifying.
Marco
The text was updated successfully, but these errors were encountered: