-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: coldstorage-2021.0.0, coldstorage-10.0.0
-
Fix Version/s: coldstorage-2021.1, coldstorage-10.1, coldstorage-2023.0
-
Component/s: ColdStorage, Glacier
-
Release Notes Summary:The BAF's query to propageate a move to ColdStorage only searches for document not in ColdStorage
-
Tags:
-
Team:PLATFORM
-
Sprint:nxplatform #83
When moving a document to cold storage, we submit a BAF to propagate the move to the other documents that are referencing the same blob with the query:
String.format("SELECT * FROM Document WHERE file:content/digest = '%s'", blobDigest)
We could optimize this by targeting documents that are not moved to ColdStorage yet:
String.format("SELECT * FROM Document WHERE ecm:mixinType <> '%s' AND file:content/digest = '%s'", COLD_STORAGE_FACET_NAME, blobDigest);