Taxonomies optimization
-
Ollie hi,
Long time no see ??
I got my hands in a rather messy project that should be interesting for you to consider as well:
800k rows in wp_posts table
30M (yes million) rows in postmeta
about 600k in term_relationships(the guys were using numerous ACFs saved in postmeta!)
When I update a post I get this lovely performance
SELECT p.ID FROM wp_posts AS p INNER JOIN wp_term_relationships AS tr ON p.ID = tr.object_id INNER JOIN wp_term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE p.post_date < ? AND p.post_type = ? AND tt.taxonomy = ? AND tt.term_id IN (?,?) AND ( p.post_status = ? OR p.post_status = ? OR p.post_status = ? ) ORDER BY p.post_date DESC LIMIT ?
https://1drv.ms/u/s!Akul2ygARwfdh5gLpaYo-SirXehZxg?e=sTMpaL
Advice of a mySQL/WP sage (in your form) is badly needed!
Cheers!
Dimitris
- The topic ‘Taxonomies optimization’ is closed to new replies.