Hello,
I'm using Metabase 1.47.9, connected to MongoDB.
I have currently a dashboard containing 7 questions, all written as native queries. 5 of them require some "heavy" workload resulting in the fact that when I open the dashboard it takes a few second before everything is displayed. When I open each question individually, the response time is lower (< 1sec).
For those 5 heaviest queries, a big part of the code is actually the same. So I was thinking of putting all the common stuff into a model. But I'm wondering one thing : if I do that, will the code of my model be executed only once when opening the dashboard, or will it be executed for each query anyway ?
If it's executed only once it could drastically reduce the display time.
Sub-question : when I have a model, I see that I can use it as input for a new question done with the UI editor, but not for a new native query (on Mongo). Is this feature planned in a near future ?