mongo db idle? can I "pre" connect?
Unanswered
Waterman posted this in #help-forum
WatermanOP
On this website: https://www.levecco.se/ this page: https://www.levecco.se/mossor loads fast because everything is cached, and therefore a connection to the database is not being established either. But whats the reason it takes so long to load when clicking on the products?
What I mean is that when clicking on one of the products, it obviously fetches the realtime information from the database which takes time, instead of just being cached
Do anyone have a solution that would work great, I appreciate all methods you share with me,
The one I did was just connecting to mongo db, then using await directly in the async function to get the product based on the url.
And the solution doesn't have to be managing to cache the products, I just want a solution that could work long-term
Thanks
What I mean is that when clicking on one of the products, it obviously fetches the realtime information from the database which takes time, instead of just being cached
Do anyone have a solution that would work great, I appreciate all methods you share with me,
The one I did was just connecting to mongo db, then using await directly in the async function to get the product based on the url.
And the solution doesn't have to be managing to cache the products, I just want a solution that could work long-term
Thanks