What features does PHP/MySQL provide to deal with concurrent systems?
E.g, If I have a table, and I only want to allow one user to update at any one time. I want to put a lock on the database until the update is complete, then once that request is processed, unlock the database and allow another user to update?
nonshatter
26
Posting Whiz
Recommended Answers
Jump to PostTo my understanding, this is exactly how MyISAM and InnoDB both work with slight differences. MyISAM locks the entire table while InnoDB locks a row during an insert/update.
It appears you can manually lock and unlock a table for a query though if necessary.
All 3 Replies
mschroeder
251
Bestower of Knowledge
Team Colleague
JRM
107
Practically a Master Poster
nonshatter
26
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.