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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

delphi and mysql

Status
Not open for further replies.

christophermoore

Technical User
Joined
Jul 22, 2003
Messages
4
Location
GB
Hi,

We will be using delphi and mysql in a multiuser environment. Am i right in saying that if we set all of our tables to 'Type = InnoDB' that we will be assured of data integrity through transaction control?

We need to ensure that users at different terminals do not write over records that someone has just changed....

Many thanks

Chris

 
Chris,

MySQL's online manual for CREATE TABLE ( contains a table that compares the available types.

According to that page, InnoDB is a transaction safe format that supports row level locking. This may or may not be appropriate; it depends on how you want to handle the concurrency issue.

While the row level locking is tempting, there are other risks. Most C/S projects use optimistic, rather than pessimistic locking and there are well-known (and documented) strategies for handling changes.

Indeed, Delphi contains several components that let you handle situation where the record has changed underneath you.

Check out as a starter and then scan the white papers at for more specific information.

Hope this helps...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top