문제

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.

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top