-
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
-
Tags:
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
- is duplicated by
-
NXP-16396 Loading from Elasticsearch should allow to easily scale out
- Resolved