[rt-devel] Does ExternalStorage actually move images to disk?

Christian Loos cloos at netcologne.de
Wed Nov 25 02:37:01 EST 2015


Am 24.11.2015 um 22:01 schrieb Shawn Moore:
>> I tried to patch to 10Kb (10 * 1024) in 3 places. After that a few
>> more files (about 20) were moved but still so much data is in DB. But
>> I have a 26k tickets archive, it looks like it processes only tickets
>> from last day but I would like it to process ALL attachments from very
>> beginning.
> 
> This is because we maintain a high water mark for avoiding processing
> the same attachments over and over and over again.
> 
>> So is it possible somehow to force this plugin to move all images and
>> other files out of DB? Thanks.
> 
> If you *temporarily* change the line in the script (extract-attachments
> in the extension, rt-externalize-attachments in 4.4):
> 
> $last = $last ? $last->Content : {};
> 
> to just
> 
> $last = {};
> 
> it should re-process all attachments. It won’t re-externalize
> attachments that were already externalized.
> 

A better solution to force an extraction run on all attachments is to
run this inside your Database:
delete from Attributes where Name = 'ExternalStorage';

This actually removes the "high water mark".

@shawn
May the script should become an "force-re-run" option which removes the
Attribute?

Chris


More information about the rt-devel mailing list