Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31739

ColdStorage: optimize propagateMoveToColdStorage BAF query

    XMLWordPrintable

    Details

    • 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

      Description

      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);
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: