2
나는 현재하고있는 중이 야 다음에 다음mysqli multi_query 쿼리
$mysqli = new mysqli($server, $username, $password, $database);
$mysqli->multi_query($multiUpdates);
while ($mysqli->next_result()) {;} // Flushing results of multi_queries
$mysqli->query($sqlInserts);
결과를 덤프 빠른 방법이 있나요?
내가 그들을 필요로하고 바로 다음 쿼리를 실행하지 않으 그러나 나는 오류를 얻을 :
Commands out of sync; you can't run this command now
문제가 while ($mysqli->next_result()) {;}
입니다 내가 원하지 않는 무언가 낭비 약 2 초 정도 걸립니다.
더 나은 해결책이 있습니까?
http://stackoverflow.com/questions/22531943/speed-best-practice-flushing-mysqli-multi-query –