Separate meta table for every post type
-
Hi guys,
the main performance issue I keep hearing complaints about, seems to be caused by a too stuffed wp_postmeta database table (especially when using WooCommerce on top of WP)
So I figured that there must be a way to separate the table entries by posttype and process each of them in their own separate table:
wp_postmeta
wp_pagemeta
wp_productmeta
wp_shop_ordermeta
etc.
So I started googling if someone else had the same idea, but no luck.
Then I started browsing through the functions and hooks that I thought to be applicable (pre_get_posts, get_post_meta, _get_meta_table, save_posts etc.), but no luck here either; I just copied wp_postmeta into wp_pagemeta, but I can’t get the page to update in its own table.
Am I going about this the wrong way? Or am I just silly to want this?
I have tried several performance enhancing plugins and tools and use cronjob to periodically remove revisions and such, but besides noticing the improvement by removing records from wp_postmeta (manually!), I am just curious if there is an easy way.
Please point me in the right direction if this is posted somewhere else or posted in the wrong forum etc.
Cheers!
- The topic ‘Separate meta table for every post type’ is closed to new replies.