插入是否随着事务提交完成?或者它们可以稍后完成?
最佳答案
根据 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.
这些引擎都不支持事务,因此在功能上没有冲突。
我想您会发现延迟插入和事务的支持将相互排斥。
关于mysql - 在事务中使用 MySQL Insert Delayed 时会发生什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2403530/