Jump to content

Recommended Posts

Hello

 

I am looking for information on allowing multiple instances of our application to access the same database...

 

 

Currently we have each instance(generally a geographic region) of our application having its own database but this is proving problematic to manage... but if a user decides to install the application for another region all their user data is non existent in that region, so a new account must be created.. Ideally we would like to have a single user database for ALL instances (regions)....

 

Is there any specific I need to do or consider to allow this?

 

Thanks

 

Originally It is was to do with server loading and regional latency, but we have introduced new systems to mitigate this to the point now where managing multiple user databases has become time consuming and problematic... 

 

My question is more about the implications of multiple connections to a MySQL database access the same tables at the same time...  

 

So, if I have one user table in a database and multiple connections to that database that act on that user table, what are the implications?

as long as they're not modifying the same field, it's fine...

I'm not sure what kind of system you're running though the above will only be an issue if there are multiple people using hte same account or updating the same user row, then you can put a lock on the row though it's starting to seem like a convoluted solution to a simple problem. multiple connections to the table doing whatever is fine, if one tries to edit the same row whilst another is editing, the second edit's attempt will overwrite the first. 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.