I have a table with 3 columns. Each has a unique index.
I’d like to do multiple inserts at once (300 records a pop). When a duplicate entry occurs it cancels the insert in its entirety. This means if 1 out of the 300 is a duplicate, none of them will be inserted.
Is there a way around this?
Try changing your query from
INSERT INTO ...toINSERT IGNORE INTO .... This will cause any errors to become warnings, and your other records should be inserted.