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

Optimize adaptation of document backed file system items

    XMLWordPrintable

    Details

    • Type: User story
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: ADDONS_5.6
    • Component/s: Nuxeo Drive
    • Backlog priority:
      520

      Description

      Currently when adapting a document as a FileSystemItem, to compute its path we recurse on the document's ancestors and adapt each of them as a FileSystemItem which is:

      • costly
      • complex to debug

      A first optimization would be, when the id of the parent FileSystemItem is known, to pass the actual parent FileSystemItem instead of its id only to the constructor responsible for adapting the doc.
      See:

      protected AbstractDocumentBackedFileSystemItem(String factoryName,
                  DocumentModel doc) throws ClientException
      
      and
      
      protected AbstractDocumentBackedFileSystemItem(String factoryName,
                  String parentId, DocumentModel doc) throws ClientException
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 1 hour Remaining Estimate - 6 hours
                6h
                Logged:
                Time Spent - 1 hour Remaining Estimate - 6 hours
                1h