From 8b3aaafd6b6c945c4d439bf579ef837af6a68f68 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Fri, 6 Feb 2026 01:14:08 +0100 Subject: [PATCH] make the install.sql import much faster --- install/includes/core/database_class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install/includes/core/database_class.php b/install/includes/core/database_class.php index e4f421eec..b70c4bd19 100644 --- a/install/includes/core/database_class.php +++ b/install/includes/core/database_class.php @@ -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();