Jump to content

Two differant parts of the code accessing the same database at the same time


cliftonbazaar

Recommended Posts

This isn't a question, more of a request to be pointed in the right direction.

 

I have a program which runs a sports game (cricket), at the moment the database is updated every 5 seconds so each game can be updated in (nearly) real time.  The problem I see is that when players are updating their team or making changes during the '5 second update'- can I make the player changes wait until the 5 second update has finished?

In other words, how do I lock the database (or lock certain rows) while it does it's update but also make sure that players changes wait in a queue until the update is finished and are simply not discarded?

 

I hope this makes sense  :-[

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.