Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do I need to implement locking 1

Status
Not open for further replies.

AP81

Programmer
Apr 11, 2003
740
AU
Just a quick question:

I have an app I have written in Delphi which will eventually have up to 30 concurrent users. Do I need to implement my own read and write locks, or does MySQL take care of this? What about commiting queries?

Thanks in advance.




------------------------------------
There's no place like 127.0.0.1
------------------------------------
 
If an entire operation is contained in a single SQL statement, then you don't need to use any form of locking; MySQL will ensure that there are no clashes.

However, if you need to ensure that two or more separate statements are run immediately after each other, you will need to use either table locking, or the transaction-processing features (BEGIN, COMMIT, etc.) of InnoDB tables.
 
Thanks!




------------------------------------
There's no place like 127.0.0.1
------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top