--
You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/h34rJ1f6YMA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at http://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/groups/opt_out.
SELECT * FROM STUDY_ON_FS t0_sof, SERIES t2_s, FILESYSTEM t1_sof_fileSystem, STUDY t7_sof_study WHERE ((t1_sof_fileSystem.fs_group_id = 'ONLINE_STORAGE' AND t1_sof_fileSystem.fs_status IN (0, 1) AND t2_s.series_status = 0 AND t0_sof.filesystem_fk=t1_sof_fileSystem.pk)) AND t7_sof_study.pk=t2_s.study_fk AND t0_sof.study_fk=t7_sof_study.pk AND t0_sof.access_time < (sysdate - <NUM_DAYS>);
I do not need to delete studies manually, I know how to do that. Studies that are stored on the NEARLINE storage are not orphans in terms of query/retrieve they are normal studies. They are just invisible for the scheduled deletion process.
My question: Can studies be deleted on the NEARLINE storage (or any other, see my post, that are FileCopy service's destinations) by the scheduled deletion, like it works for the ONLINE storage (source for the FileCopy service)?
Thank you.
On Wednesday, August 28, 2013 9:17:43 AM UTC-4, fleetwoodfc wrote:
UPDATE.
I found that studies on the NEARLINE_STORAGE appear in the STUDY_ON_FS table
only after files on the ONLINE_STORAGE were deleted by the scheduled deletion
and the study was first time retrieved from the NEARLINE_STORAGE . This
retrieval time becomes an access_time in the table and it is a start time for
the deleter’s settings.
That means, at least I think so, if the study has never been retrieved
from the NEARLINE_STORAGE, it will never be deleted by the scheduled deletion
(there are no records for this storage in the STUDY_ON_FS table) unless deletion of
studies will be triggered by running out of disk space (DeleterThresholds), I
do not know if it works at all in this situation.
Let's assume that for the ONLINE_STORAGE DeleteStudyIfNotAccessedFor was set to
52w and DeleteStudyOnlyIfNotAccessedFor = 10d and deletion of studies was
not triggered by running out of disk space during these 52 weeks with all
constraints. In 52w after the first access study (actually files of instances)
will be deleted and the copy that was created on the NEARLINE_STORAGE (FileCopy
service) will never be accessed again, that study will stay on the
NEARLINE_STORAGE for indefinite period of time, again unless the running out
of disk space trigger works but for Amazon
S3 it is not an option anyway.
I have already been thinking about some update triggers creation in the postgresql db to create those NEARLINE_STORAGE records in the STUDY_ON_FS, but now I see that the application does it, although, IMO, in some questionable way.