Hi!
Sorry for bothering you. I installed ExternalStorage plugin for RT but it does not help much, it takes out of DB less than 15% (996Mb in DB, 143Mb on disk). I really expected every attachment should be moved. I took a look at source code and I don't understand a few things:
1)
ššššššššššš $attach->Limit(
ššššššššššššššš FIELDšššš => 'ContentType',
ššššššššššššššš OPERATORš => 'NOT STARTSWITH',
ššššššššššššššš VALUEšššš => $_,
ššššššššššššššš SUBCLAUSE => 'applies',
ššššššššššššššš ENTRYAGGREGATOR => "AND",
ššššššššššš ) for "text/", "message/", "image/", "multipart/";
Are you intentionally skipping images? Why? Documentation say images should be moved.
2)
ššš } elsif ($type =~ m{^image/}) {
ššššššš # Ditto images, which may be displayed inline
ššššššš return 1 if $length > 10 * 1024 * 1024;
ššššššš return 0;
It means any file less than 10Mb will not be moved? Does it make sense?
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.
So is it possible somehow to force this plugin to move all images and other files out of DB? Thanks.
Sorry for bothering you. I installed ExternalStorage plugin for RT but it does not help much, it takes out of DB less than 15% (996Mb in DB, 143Mb on disk). I really expected every attachment should be moved. I took a look at source code and I don't understand a few things:
1)
ššššššššššš $attach->Limit(
ššššššššššššššš FIELDšššš => 'ContentType',
ššššššššššššššš OPERATORš => 'NOT STARTSWITH',
ššššššššššššššš VALUEšššš => $_,
ššššššššššššššš SUBCLAUSE => 'applies',
ššššššššššššššš ENTRYAGGREGATOR => "AND",
ššššššššššš ) for "text/", "message/", "image/", "multipart/";
Are you intentionally skipping images? Why? Documentation say images should be moved.
2)
ššš } elsif ($type =~ m{^image/}) {
ššššššš # Ditto images, which may be displayed inline
ššššššš return 1 if $length > 10 * 1024 * 1024;
ššššššš return 0;
It means any file less than 10Mb will not be moved? Does it make sense?
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.
So is it possible somehow to force this plugin to move all images and other files out of DB? Thanks.