What happens when using MySQL Insert Delayed inside a transaction?

自作多情 提交于 2019-12-23 18:53:42

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!