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

Improve performance of document fetching from ES

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.9.6-SNAPSHOT, 6.0-HF08, 7.2
    • Fix Version/s: 7.3
    • Component/s: Elasticsearch

      Description

      Right now it is less efficient to fetch documents from ES than from VCS.

      The reason is that org.nuxeo.elasticsearch.io.JSONDocumentReader deserialize the json payload sent by ES into instances of DocumentModelImpl using the setPropertyValue method. Doing that means for each document and each property, there is a call to the VCS to fetch the data model. In the end, the data are actually fetched twice, one from ES, one from the VCS.

      Possible solutions to explore in order to improve perfs include (but are not limited to):

      • replacing DocumentModelImpl by SimpleDocument
      • Put the metadata directly in a Map and avoid calling setPropertyValue

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: