Hi, I'm reading on web, very detailed tutorials on how to use transactions with database types and database engines, but I haven't found some guide that teach me when and why I should use them.
I know transactions are usually used for home bankings, so when we work with money data, but I can immagine they are used in many other ways.
Today I'm working on a page with various INSERT
statements for a relational database, and I wonder to know if this is one of the cases when I should use them.
I get an impression that I don't know the cases when the data can be partially be lost (coder errors apart) so I'm always worried about know when i should use them.
Can someone explain or give some link with these foundamental rules?
I'm using MySQL 5.0.8
, should I use InnoDB
for all tables need transactions? If yes, is InnoDB
slower than the common MyISAM
but I shouldn't worry about that?
thanks