问题
Does the inserts are finished with the transaction commit? Or they can be finished later?
回答1:
Per the MySQL Documentation:
INSERT DELAYED works only with MyISAM, MEMORY, ARCHIVE, and (as of MySQL 5.1.19) BLACKHOLE tables. For engines that do not support DELAYED, an error occurs.
None of these engines support transactions, so there's no conflict in functionality here.
I would imagine that you will find that support of delayed inserts and transactions will be mutually exclusive.
回答2:
Insert delayed don't work with engines that support transactions
来源:https://stackoverflow.com/questions/2403530/what-happens-when-using-mysql-insert-delayed-inside-a-transaction