Non-blocking INSERT with mysqlnd
Note: This article was originally published at Planet PHP
on 13 August 2012.
An INSERT does not delay me much. At least, it does not necessarily block a PHP MySQL script immediately. The asynchronous query feature of the mysqlnd library helps out. A walkthrough what mysqlnd can do today and could do in theory.
Traditional synchronous API
$ret = $handle1-query("INSERT ...");
$ret = $handle1-query("INSERT ...");
By ...


