PDA

View Full Version : Clean up filedata table after database -> filesystem


findingpeace
09-20-2014, 01:51 AM
I ran the database -> filesystem change for attachments (ACP -> Attachments -> Attachment Storage Type -> Move Items from Database into File System) and everything works, but my database size is unchanged. More than 500MB should have been trimmed off, but the filedata table still shows identical from before I ran the change. I said "Yes" to the cleanup changes at the very end.

Any ideas on how I can update this table now that attachments/avatars are stored on disk?

Thanks!

Zachery
09-20-2014, 02:54 AM
Did you run an optimize?

findingpeace
09-20-2014, 11:21 AM
Thanks Zachery! That did the trick - but even though the database is 500mb smaller, I still see 6,000+ rows in the filedata table, is that expected?

Zachery
09-20-2014, 03:23 PM
Yes, we still keep data in there, just not the binary data.

findingpeace
09-20-2014, 04:27 PM
Thanks very much for your help!