Answer the question
In order to leave comments, you need to log in
Working with two databases?
We use 2 databases, one is spinning on mysql, the second on postgre.
Now I began to bring all the writings to the mvc model, I would like to see successful implementations of working with 2 different databases in other people's projects. Submit links.
Answer the question
In order to leave comments, you need to log in
Take a look at Doctrine. There on each connection there is entity manager. We take out the logic for working with the database in the service layer (any data providers or a record manager) and that's it. Depending on what is needed, the service uses its own connection.
I wonder what the downside is? If the answer to the question is obvious, it is necessary to share, for this the questions section was created. And so - childishness.
Fesor, you are right. In mysql, subscribers and payments, in postgre - equipment database, geodata, zabbix
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question