Is there a way to continue in a PHP7.2 script after using
$sql = "INSERT INTO `table` SET `a` = 'aaa';
$result = mysqli_query($link,$sql,MYSQLI_ASYNC);
// $result is always 'true'
as a means of a delayed insert?
It now gives
Commands out of sync; you can't run this command now
when my script continues and the next query is executed.
I'm using innodb so an INSERT DELAYED
doesn't work, although I'm looking for the same behavior from a PHP script perspective. (deploy query, don't wait for it being processed)
Do I need to use a separate script and message broker (e.g. RabbitMQ) to pull this off with InnoDB databases?