make the install.sql import much faster

This commit is contained in:
HB9HIL
2026-02-06 01:14:08 +01:00
parent ea5b171902
commit 8b3aaafd6b

View File

@@ -40,12 +40,12 @@ class Database {
// Execute a multi query
$mysqli->multi_query($newquery);
// MultiQuery is NON-Blocking,so wait until everything is done
// Drain all results to ensure the server finishes processing.
do {
null;
} while ($mysqli->next_result());
$mysqli->store_result();
if ($result = $mysqli->store_result()) {
$result->free();
}
} while ($mysqli->more_results() && $mysqli->next_result());
// Close the connection
$mysqli->close();