V
V
Vladimir Korovin2013-06-25 09:46:29
MySQL
Vladimir Korovin, 2013-06-25 09:46:29

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

4 answer(s)
W
wolandtel, 2013-06-25
@vakorovin

The same yii works with at least a dozen.

S
Sergey, 2013-06-25
Protko @Fesor

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.

V
Vladimir Korovin, 2013-06-25
@vakorovin

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.

V
Vladimir Korovin, 2013-06-25
@vakorovin

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 question

Ask a Question

731 491 924 answers to any question