Quantcast
Channel: WordPress – Wayne Connor
Viewing all articles
Browse latest Browse all 13

Huge commentmeta file in wordpress database.

$
0
0

A surprising email:

It has come to our attention that your site is using an excessive amount of MySQL resources on your Bluehost account.

So some looking into it, the wordpress commentmeta SQL table for http://macintoshhowto.com was 2.7 Gig. Yes 2.7 GB!!!!!

More looking, it’s a bug with Akismet spam filter cleanup.

 

These two queries fix it.

select count(*) from dbname_commentmeta where meta_key=’akismet_as_submitted’ or meta_key=’akismet_history’ or meta_key=’akismet_rechecking’ or meta_key=’akismet_result’ or meta_key=’akismet_user’ or meta_key=’akismet_user_result’;

delete from dbname_commentmeta where meta_key=’akismet_as_submitted’ or meta_key=’akismet_history’ or  meta_key=’akismet_rechecking’ or meta_key=’akismet_result’ or meta_key=’akismet_user’ or  meta_key=’akismet_user_result’;

 

Then you need to repair and optimise.


Viewing all articles
Browse latest Browse all 13

Trending Articles