|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Retrieve/Update Same Row Conflict?
I am using a mySQL database to store data for a financial analysis application that I have built. The database is having data inserted it into it and updated on a very rapid basis (many times per second). While this is happening, I also need to retrieve data from the database. Since all of this is happening so fast, what I am concerned about is could there be a possible error if I retrieve a row at the same exact time that a query is running to update it?
|
|
#2
|
||||
|
||||
|
What database engine are you using? MyISAM does a table lock when it is writing and INNODB does a row level lock. IIRC internally if both try to happen at the same time - it has a collision and then a time out for each thread before trying again. AFAIK it handles race conditions internally quite well.
__________________
life is a game.... Have fun ----------------------------- http://www.phpwomen.org strength in unity PHPCommunity IRC #phpc on freenode |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > Retrieve/Update Same Row Conflict? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|