As in this question, I've been reading PoEAA and wondering if it's possible to defer referential integrity checks until commit in MySQL.
I've run into this problem when wanting to insert a bunch of products and related products in the same commit. Even within a transaction, I get constraint errors when I try to insert into the related_products
join table.
If it helps, I'm using PHP PDO for database connections.
I'd appreciate any help you could offer.
Looks like my answer is here...
Back to the drawing board.