How to use different connections according to query type in Yii
-
30-10-2019 - |
Frage
All my reads should go to one DB connection All my writes should go to another connection
How do I accomplish this in Yii, with minimal changing the code of the core library?
And on occasions (as stated in the comments) I will need the ability to control each Model type of connection, so read can go to the Master too.
Keine korrekte Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow