Open tgoeg opened 2 years ago
@tgoeg thanks for the report!
@herregroen @diedexx I haven't fully read every line in this report yet, but I think this warrants your attention.
Any update on this?
Any update on this?
Anniversary is coming up soon 🎂 Any update on this?
Please give us a description of what happened.
Updated to 17.9, got the following in the web server's error log (then unnoticed):
This is on a
innodb_file_per_table
setup on a current mariaDB/mySQL withrow_format=dynamic
. So basically maxing out what is technically possible as a max row size.Since then, WordPress is extremely slow because of repeated log entries like this:
Tried to use
wp yoast index
to no avail (expected, another column is missing):Tried to use
yoast-test-helper
'sReset Indexables tables & migrations
functionality to no avail:This is the currently longest row in the affected table:
See how the entry violates 1NF and 3NF of DB normalization.
https://domain.com/wp-content/uploads/2020/09/img_1.jpg
alone is redundantly contained 3(!) times (and a fourth time with and absolute local path).I am no full-time DBA and just a sysadmin, but I would have expected this opengraph and twitter data to be in a separate table (only once), and only referenced here. I don't know the intricacies of a WP DB, but also the
object_id, object_type, object_sub_type
columns would be a perfect fit for a separate table. Also is_public, is_protected, has_public_posts seems like something that could be joined in from WP core's tables? Structures like these are the most dominant cause for "row size too large" (and bad performance) when researching for the named error. This may very well be related to other tickets I saw in the issue queue describing high DB load. And to #17843, #17688. And to some others mentioning missing columns.However, in this one I really drilled down to the root cause it seems.
Please describe what you expected to happen and why.
How can we reproduce this behavior?
I guess
ALTER TABLE
stanzas that add the columns.Technical info
Editors/Browser versions not relevant.
Used versions