D
D
deleted2014-05-23 16:26:09
PHP
deleted, 2014-05-23 16:26:09

How normal is it to use two PDO objects in an application?

Greetings.
It so happened that in the application, two ready-made solutions from github use different ways of working with the same mysql database.
From one component, I can get a PDO object, it politely gives it back, and the second either supports all possible connection options, but you can’t just transfer a ready-made PDO object there. So the question is brewing, how rational is it to use two different database connections in an application?
By the way, we are talking about the RedbeanPHP and Illuminate/database libs
ps
It is worth noting that I refused such a solution as I did from Illuminate-based Liba

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
svd71, 2014-05-23
@zayac_agito

Fine. it's just that the memory allocation can take more. And there may be issues with the visibility of the data - when in one component the data change has not yet been confirmed, and in the second they are already trying to read.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question