This is a comment on Upgrade to 5.5, posted by WikiAdmin at 06.05.2024 20:48

View source for Not optimal DB request during upgrade from 5.4.3

Hi!
I have WackoWiki 5.4.3 under CentOS 7.4 x64, PHP 5.4 and MariaDB 5.5. The database has about 4000 pages and 50000 revisions. During upgrade to WackoWiki 5.5.5 (PHP 7.1, MariaDB 10.2) the script setup/database_mysql_updates.php worked more one hour! This is too slow for such amount of records. Request $update_revision_r5_4_0 must be changed as:
%%(hl diff)--- setup/database_mysql_updates.php.orig
+++ setup/database_mysql_updates.php
@@ -133 +133 @@
-$update_revision_r5_4_0 = "UPDATE {$pref}revision AS r, (SELECT page_id, page_lang FROM {$pref}page) AS p SET r.page_lang = p.page_lang WHERE r.page_id = p.page_id";
+$update_revision_r5_4_0 = "UPDATE {$pref}revision AS r, {$pref}page AS p SET r.page_lang = p.page_lang WHERE r.page_id = p.page_id";%% After that the script worked about 2 minutes.