Slow delete of multiple threads

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
elonturing
Registered User
Posts: 35
Joined: Fri Jan 13, 2006 1:39 pm

Slow delete of multiple threads

Post by elonturing »

Hello,

Doing some cleanup and noticed when deleting multiple threads it seems to take a long time.

This was the sql process while deleting 5 threads
word-match-sql.png
As for search index

Total number of indexed words: 302530
Total number of word to post relations indexed: 21268512

Any way to improve delete times?
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

Re: Slow delete of multiple threads

Post by JoshyPHP »

Do you have any control over MySQL settings? You can increase key_buffer_size if you're on MyISAM or innodb_buffer_pool_size for InnoDB.

In some rare cases, OPTIMIZE TABLE can improve the performance of future updates and deletions. And make sure that table has an index on post_id. (which it does by default)
I wrote the library that handles markup in phpBB 3.2+.
elonturing
Registered User
Posts: 35
Joined: Fri Jan 13, 2006 1:39 pm

Re: Slow delete of multiple threads

Post by elonturing »

I just deleted the search index and added google to the forum.

A 50 thread delete that would lock the database for a couple minutes, now takes three seconds.
Post Reply

Return to “[3.2.x] Support Forum”