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

avoid copy of blob content when importing content in core storage

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 5.5.0-HF08, 5.6-RC1, 5.6
    • Component/s: None
    • Upgrade notes:
      Hide

      To make use of the no-copy method:

      • create an InputStreamSource from the stream you have,
      • create a StreamingBlob from it,
      • persist the StreamingBlob,
      • then set the blob using standard DocumentModel.setPropertyValue.

      For this to be efficient and without copy, the directory for temporary files should be on the same filesystem than the binary store (java.io.tmpdir Java system property).

      Show
      To make use of the no-copy method: create an InputStreamSource from the stream you have, create a StreamingBlob from it, persist the StreamingBlob, then set the blob using standard DocumentModel.setPropertyValue. For this to be efficient and without copy, the directory for temporary files should be on the same filesystem than the binary store (java.io.tmpdir Java system property).

      Description

      When importing a document from the web, the blob content is transfered to the core storage through a streaming blob. The content was persisted on the disk in a temporary location. The stream content is transferred to another file during the digest computation. This slows down the import process when working with large file. Instead of transferring the file, we want to move the temporary file into the binary storage.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: