Cleaning up attachment database
Moderator: SourceGear
Cleaning up attachment database
What does SourceGear propose for forward maintenance of the attachment database? I can see in our setting the size growing out of control; it's already over 1GB.
How about a feature that purges attachments older than nn days?
Thanks,
Blake.
How about a feature that purges attachments older than nn days?
Thanks,
Blake.
Currently there is no way to do this. I've added a feature request for this type of functionality.
HOWEVER - If you want to spend some time on some SQL queries, you might be able to come up with something that deleted attachments from posts ( messages ) where the message's posted date was less than a certain value.
HOWEVER - If you want to spend some time on some SQL queries, you might be able to come up with something that deleted attachments from posts ( messages ) where the message's posted date was less than a certain value.
Jeff Clausius
SourceGear
SourceGear
Unfortunately...
I just realized that not only is there not an automated functionality to delete attachments, but there is currently NO way to delete even attachments individually for end-users. This seems to be a sorely lacking feature.
Can you add that, too? What will happen if I just remove attachments; will it break gracefully when I try to view an item?
Thanks,
Blake.
Can you add that, too? What will happen if I just remove attachments; will it break gracefully when I try to view an item?
Thanks,
Blake.
It should be safe to delete any row from the attachments table. It shouldn't have any affect on the item, except for the removal of an attachment.
One alternative for external submission attachments, one could gain more more control using the external submission API to set a size limit or completely disallow attachments on external submissions.
As for deleting attachments from external submission, can you give some more detail on what you would like to see? I was thinking something like a "Query Page", where you could delete attachments for items meeting a user-defined criteria. Any thoughts here?
One alternative for external submission attachments, one could gain more more control using the external submission API to set a size limit or completely disallow attachments on external submissions.
As for deleting attachments from external submission, can you give some more detail on what you would like to see? I was thinking something like a "Query Page", where you could delete attachments for items meeting a user-defined criteria. Any thoughts here?
Jeff Clausius
SourceGear
SourceGear
Attachment cleanup thoughts
1. A maintenance/cleanup option for the admin, eg. remove all files older than nn days,jclausius wrote:Sorry, no. We've been waiting for feedback from customers before deciding on how to implement the feature. Do you have any thoughts on my previous post?
2. Some sort of flag (a checkbox?) when the user is adding an attachment that allows for 'permanent archive', that is, the ability to retain specially marked attachments when purging the database for general maintenance.
Can I remove the columns in the database without causing any broken relationships or errors thrown at the application-level by the DragNet interface?
Thanks for the quick response.
Regards,
Blake.