Hello community,
I use Metabase (v0.50.4) self-hosted with PostgreSQL (application DB).
All my data though that is shown on the dashboards/questions is coming from BigQuery.
One of my dashboards is taking a while (20-30 seconds) in the Loading...
page before loading the cards. Debugging in the browser I can see it happens due to 2 calls to the API, these URLs (see the picture):
- https://my_metabase.com/api/dashboard/123
- https://my_metabase.com/api/dashboard/123/query_metadata
When I call these 2 endpoints directly, they return a JSON of 40k rows each, with all the metadata of all dashboard tables, calculated columns, etc. within the questions in the dashboard; which explains the size of the file.
I understand that as more questions as more it takes to load, the size of the table, etc... but my point is that this file (even 40k rows), has 44kb, and the db returns it in milliseconds.
So, what is the thing that causes this load to take 30 seconds? Is it the application to parse the query result into the JSON file?
Is there anything I can do to just make it load faster in the app side, given the DB provides the results pretty fast?
Thank you very much!