Now that I am a happy user of PHP5 and MySQL5 and using that for writing a new application, which fortunately involves using the newest technologies, I am finally able to solve one of the biggest issues I always had had with DB-driven applications: foreign key contraints.
Constraints and transactions
I am using InnoDB (I know those contraints had been possible
before MySQL5) for that and the first time I am also using the
foreign key constraints InnoDB provides. And
it does make me happier :-). I don’t have to take care of
updating and deleting all the referenced table rows myself, the
DB’s storage engine does that for me, as I always had wanted it.
I had started out using MyISAM tables and triggers, but when I realized that I am programming the application using transactions I had to switch to InnoDB …
[Read more]