php - Handling multiple mysql databases using a web service -


i using rest web service online application developed in php , mysql database.

i have 2 mysql databases different name called db1 , db2. both db1 , db2 contains same table structure , same table names.

my service decides database use when request made. portal used worilwide , serves thousands of requests.

i little worried coz there 2 different database have tables same names.

would cause mess??

it not @ all. if programm oop stay inside it's own container/connection.

i use multiple databases time, never leave there classes/containers. therefor never touch eachother. , according saying never use both connections @ same time basicly wont ever notice it's there ^^

the way there mess if need both datases synced.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -