mysql非同期実行query/@todo

1281 ワード


http://stackoverflow.com/questions/27240421/php-asynchronous-mysql-query
http://php.net/manual/en/mysqlinfo.library.choosing.php
 
$mysqli = new mysqli("localhost", "root", "", "test");

// ee($mysqli);

 $a = $mysqli->query("select sleep (2)", MYSQLI_ASYNC);


echo 'run other stuff '."
"; $result = $mysqli->reap_async_query(); $resultArray = $result->fetch_assoc(); ee($resultArray);
 
mysqlunbuffered_query()
mysqlnumローソンとmysqldata_seek()
 
mysqlidata_seek