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

Prefetch complex properties

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.5
    • Component/s: Core, Core VCS
    • Impact type:
      API added
    • Upgrade notes:
      Hide

      In the <prefetch> element of a <doctype> you can now specify, in addition to a schema or a property, any complex property like:

      • book:author/pJob (complex property field)
      • book:author/pName/FirstName (deep complex property field)
      • attachments/0/name (field of a complex list)
      • attachments/*/name (field of all elements of a complex list)
        Note that when a whole schema is specified as being prefetched, actually only its simple properties (scalars and lists of scalars) are prefetched. Complex properties are not.

      New API:

      • DocumentModel.isPrefetched
      Show
      In the <prefetch> element of a <doctype> you can now specify, in addition to a schema or a property, any complex property like: book:author/pJob (complex property field) book:author/pName/FirstName (deep complex property field) attachments/0/name (field of a complex list) attachments/*/name (field of all elements of a complex list) Note that when a whole schema is specified as being prefetched, actually only its simple properties (scalars and lists of scalars) are prefetched. Complex properties are not. New API: DocumentModel.isPrefetched

      Description

      There is a need to prefetch complex properties in addition to the simple properties that we can prefetch today.
      This will be useful for instance to fetch all the attached filenames in one batch instead of having them be lazy loaded.

      Impact:
      1. core-schema: allow specification of which fields to prefetch,
      2. VCS: actually understand this in terms of tables/columns, and do the prefetch of subnodes on node loading,
      3. core: also do the prefetch at the core level into the DocumentModel/DocumentPart structures.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fguillaume Florent Guillaume
                Reporter:
                fguillaume Florent Guillaume
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.