Query Retrieve after Instance Records Purged - dcm4che/dcm4chee-arc-light GitHub Wiki
The test is to verify that Retrieve Cache is used when query/retrieve is being done from a Nearline storage even after
the series metadata is accumulated and instance records have been purged from database. This means that object(s) are
first copied to the retrieve cache from nearline and then sent to destination. In addition to that, the json file(s)
of the object(s) in the updated series-metadata zip files should now also contain the reference to retrieve-cache storage.
In addition to basic configuration done for retrieve cache and series metadata configuration, below configuration is needed to enable the purging of instance records from database.
- Go to 
Configurationpage,Devicestab and editdcm4chee-arcdevice.Edit extensionofDevice Extension, nextEdit extensionofArchive Device. - Go to 
Attributessection ofArchive Deviceand ensure that one has values set for fieldsPurge Instance Records,Purge Instance Records DelayandPurge Instance Records Polling IntervalandSave. 
One may
- 
create a LDIF file (e.g.):
dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org changetype: modify add: dcmPurgeInstanceRecordsDelay dcmPurgeInstanceRecordsDelay: PT1M dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org changetype: modify add: dcmPurgeInstanceRecordsPollingInterval dcmPurgeInstanceRecordsPollingInterval: PT1M dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org changetype: modify add: dcmPurgeInstanceRecordsFetchSize dcmPurgeInstanceRecordsFetchSize: 10 dn: dicomDeviceName=dcm4chee-arc,cn=Devices,cn=DICOM Configuration,dc=dcm4che,dc=org changetype: modify add: dcmPurgeInstanceRecords dcmPurgeInstanceRecords: true 
One may refer to Archive Device to understand the description of attributes.
Refer ISO-8601 Duration format for more know-how on Durations.
Go to the Control tab on Configuration page in archive UI and reload the configuration.
- Perform test steps and the corresponding verifications.
 - In addition, verify the value of private attribute 
Instance Record Purge State of SeriesisPURGEDon Series and Object level.