Working on a multi-tenant application with each tenant having their own database. I’ve set up a tenant middleware.
My plan is to cache each tenant connection than when needed set the connection. Not sure if it would be best to do that in the middleware ( or if that’s even possible , kinda new to Adonis) or if it would be better to do it in the model through the connection property.
Thanks in advanced.