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

Split request for each query before sending to subgraph #6517

Open
ngocnam1202 opened this issue Jan 7, 2025 · 1 comment
Open

Split request for each query before sending to subgraph #6517

ngocnam1202 opened this issue Jan 7, 2025 · 1 comment

Comments

@ngocnam1202
Copy link

Hi team,

I have an issue related to the parallelization in subgraph:
The Client sends a request with multiple query (2 queries in the same subgraph) to the Router.
The Router routes the request (with 2 queries) to the Subgraph.

My problem is: I want the two queries will be executed at the same time, but in fact, the second query is executed after the first one is finished.

Is there any wait ti customize the Route to send each query in a request to the Subgraph; want the results and combine them to respond the Client.

Thanks in advance

@yanns
Copy link
Contributor

yanns commented Jan 8, 2025

The service handling the subgraph should be able to executre both queries in parallel no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants