Threads deleted by SQL database not shrinking

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
noobnewb
Registered User
Posts: 3
Joined: Fri Sep 24, 2021 7:31 am

Threads deleted by SQL database not shrinking

Post by noobnewb »

Hi there, running phpbb 3.2.9. Deleted multiple pages of threads (not multiple pages of a single thread, but several dozen threads). Have cleared cache, but the size of the SQL database is not shrinking. A random search using one of the thread IDs didn't show a result, so it does look like things were deleted successfully. What's going on? How can we get the DB size to go down when threads are deleted?
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Threads deleted by SQL database not shrinking

Post by david63 »

What table type are toy using and if it is MyISAM have you optimised the database?
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
noobnewb
Registered User
Posts: 3
Joined: Fri Sep 24, 2021 7:31 am

Re: Threads deleted by SQL database not shrinking

Post by noobnewb »

innodb v10. we have not optimized yet.
noobnewb
Registered User
Posts: 3
Joined: Fri Sep 24, 2021 7:31 am

Re: Threads deleted by SQL database not shrinking

Post by noobnewb »

any other comments? when we search the tables, old threads do seem like they're gone.
User avatar
warmweer
Jr. Extension Validator
Posts: 11268
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium
Contact:

Re: Threads deleted by SQL database not shrinking

Post by warmweer »

noobnewb wrote: Sun Sep 26, 2021 9:31 am innodb v10. we have not optimized yet.
Then "optimise" the tables (defragmenting) to see whether that reduces db-size.
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
rxu
Extensions Development Team
Posts: 3712
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation
Contact:

Re: Threads deleted by SQL database not shrinking

Post by rxu »

noobnewb wrote: Thu Sep 30, 2021 4:08 am any other comments?
Not only posts table can affect database size, it could also be for example sessions table or search index tables. Are they big for your DB?
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5885
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Threads deleted by SQL database not shrinking

Post by thecoalman »

A quick Google search tells me under certain configurations MySQL doesn't release the disk space. However it should not increase until that space is filled.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
Post Reply

Return to “[3.2.x] Support Forum”