Database Optimizer silently failing with a status 504
-
I’m struggling to resolve the error message “Database optimization did not complete successfully. We recommend restoring the original database or try again.”
When I click on the “try again” link, I see this ajax request
curl -X POST 'https://xxx.com/wp-admin/admin-ajax.php' \
--data-raw 'action=trp_update_database&trp_updb_nonce=hgbggjhfjgh&initiate_update=true'and this query paginated query in MySQL:
SELECT
tt.id, CASE WHEN ot.original is NULL THEN tt.original ELSE NULL END as tt_original,
tt.translated,
tt.domain AS tt_domain,
tt.plural_form,
tt.original_id AS tt_original_id,
ot.original,
ot.domain,
ot.context
FROMwp_trp_gettext_en_usAS tt
LEFT JOINwp_trp_gettext_original_stringsAS ot ON tt.original_id = ot.id LIMIT 100, 50The query keeps running in even after the ajax request has failed with a 504.
I tried to modify the query to debug as it seemed to have an exponentially increasing the page size such these limit clause instances:
... LIMIT 9550, 9600
... LIMIT 19550, 19600After all these attempts to debug, I’m not seeing any related error in the logs.
I would appreciate assistance from a team member.
Thanks
You must be logged in to reply to this topic.