Is it a bad practice to query two different databases on the same page?

I work with a programmer who does not want me to touch his database ...

I would like to work with a database, and not hard code my content, but I do not want the site performance to suffer.

Is it bad practice to query two different databases on the same page?

If this is not a problem, is there a limit on the number of databases that you can query per page?

PS php / mysql website

+3
source share
5 answers

i am touching his database

Perhaps this is due to the presence of a multilevel architecture, and you should not directly talk to the database.

, - "" , "" , .

?

, . , , - , .

+5

, , .

+1

, . , . , .

, , , , .

+1

? , / .

Will you store data / relational data in the database? If not, you can leave with include ("file.php")

All that is considered bad practice is to have multiple databases per page, you just need a good reason for this.

+1
source

I regularly end up in the assessment database and the reference database, as the client lives in Texas and the nearest office is 150 miles away.

0
source

Source: https://habr.com/ru/post/1736336/


All Articles