-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 9.10
-
Component/s: Web UI
-
Epic Link:
-
Tags:
-
Sprint:nxGang Sprint 10.2.3
-
Story Points:1
There are a number of elements using 'nuxeo-page-provider' including 'nuxeo-search-form' and 'nuxeo-results-view' that configure the header X-NXfetch.document" to 'properties' by default.
Using this header like this has an impact on performance since its resolves all the external entities even if they are not potentially used on the page. https://jira.nuxeo.com/browse/NXP-16066
We have noticed that in a sample app, a call like: POST $server/nuxeo/api/v1/search/pp/asset-search/execute takes about 3s to return 79 docs and only 17ms where spent in ES.
Removing the generic header and passing only a specific property to be resolved improved the execution time 10 times, down to 300ms.
( the app has caches on the directories configured)
For example, for dc:contributor we would fetch automatically all the groups ( as the UserManagerResolver is invoked).
There are two things to fix:
- we should be able to pass a custom header when using the above elements
- the default value should not be 'properties' , probably this will cause performance problem even in the default webUI
- is related to
-
NXP-25326 Allow to override page-provider headers on 8.10
- Resolved
-
NXP-24987 Use Object type for headers attribute in nuxeo-search-form
- Resolved
-
NXDOC-1588 Add a Web UI doc about performance tweaks to promote scalability
- Resolved
- is required by
-
NBM-434 Don't use generic header "X-NXfetch.document": "properties"
- Resolved