API calls to metabase

Our application is making api calls to get the data from metabase , e.g.
/api/card/

but we are experiencing some performance issues
If our dashboard contains 10 question for example, we will call /api/card ... 10 times using RestTemplate - it seems to be at this point it takes 2-4 seconds for metabase to respond. The more questions we have on the dashboard the greater the wait time.

Any advise?

Hi @maria.murphy
Post "Diagnostic Info" from Admin > Troubleshooting.
And your logs showing the full visit would be helpful. Admin > Troubleshooting > Logs.
I would recommend reading https://www.metabase.com/learn/administration/metabase-at-scale

So if you don't use your app, but just go to the dashboard in Metabase, are you seeing the same problem - if not, then you should look in your app code.