Does Data API Builder support parallel queries & API calls ? #1784
Replies: 3 comments
-
Hello, is there any update on above question ? Adding on top above description, when multiple users are using the application, we are not able to serve all users, as there is a timeout for some requests. Again, Data API Builder is waiting for previous call to complete. There seems to be only one query at a time per connection between DAB & MSSQL. If this is the case, Data API Builder cannot be used in production. Can someone please help here ? Are we missing anything in our setup, or parallel requests are not supported in Data API Builder itself ? If it is not supported now, is there any timeline for this ? |
Beta Was this translation helpful? Give feedback.
-
Hi @rajendraas, thank you for the questions. For your 1st question, could you please share more details about the workload you are running |
Beta Was this translation helpful? Give feedback.
-
Hi @severussundar , thanks for the reply :) I tried to answer your questions as much as I could. Hope this helps.
Time taken by individual query when called sequentially -
Time taken when same queries are executed in parallel -
Each query has filter on
|
Beta Was this translation helpful? Give feedback.
-
We are using Data API Builder to connect to MSSQL server. We are able to establish the connection & run queries as well.
Ex - This example show the time taken by API to reply when run in parallel, vs time taken when run individually.
API call number | time taken when run individually | time taken when run parallely
1 | 100 ms | 100 ms
2 | 135 ms | 235 ms
3 | 425 ms | 660 ms
4 | 105 ms | 765 ms
Ex- This is the kind of combination we tried to execute. Note that
allBooks
&allAuthors
are fetched in single query, and not 2 separate.If the time taken for
allBooks
is 40 ms & time taken forallAuthors
is 50 ms, then the query is taking 90 ms. Should this whole query make parallel calls to DB for each query in it ?The DB doesn't seem to be a bottleneck that is blocking anything for the DAB / Graphql server.
Does Data API Builder support parallel queries & API calls ?
Beta Was this translation helpful? Give feedback.
All reactions