thanks @Kristina_Stefanova. Appreciate the response.
So, the first instance of the asynchronous call itself submits the aggregation pipeline for execution on the db server? And then subsequent calls poll every 1+ seconds. The eventual recurring call, which comes back with data in response takes decently higher time - i.e. 4-8 seconds. Do we know, what all goes in for that instance?
It would be great to know, if the view pipeline (if applicable) & chart pipeline are executed on DB server together as one? i.e. the first async call submits the effective aggregate pipeline (view + filters + chart) for execution to the DB server, and then keep looking for the results?
In case of a dashboard with multiple charts, are the aggregation pipelines for all of them submitted in first instance? And are they run in parallel on the DB server?
I am putting these questions, since we have observed that, on mongoDB samples, i.e. Movies dashboard & the embedded chart examples hosted on https://codesandbox.io/ - when a dashboard is loaded, separate api calls are being made for each chart in the dashboard, all at same time, and in parallel.
While on our cluster, one /dashboard_shared_adf call is made for a batch of charts together. e.g. For a dashboard with 10 charts, 3 calls are being made with 4, 4, 2 chart details in the request payload. What could be causing this?
Thanks in advance!
Prakash