-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 7.10
-
Component/s: CMIS
-
Backlog priority:800
-
Upgrade notes:
-
Sprint:nxcore 9.1.4, nxcore 9.2.1
-
Story Points:3
Currently a CMIS query is run without limit when run against Elasticsearch
NuxeoCmisService
if (repository.useElasticsearch()) { ElasticSearchService ess = Framework.getService(ElasticSearchService.class); NxQueryBuilder qb = new NxQueryBuilder(coreSession).nxql(nxql).limit(-1); it = ess.queryAndAggregate(qb).getRows();
Because of that, the JSON payload is sent to Elasticsearch with a size of 2147483647
"from" : 0, "size" : 2147483647, "query" : {
which makes Elasticsearch returns the maximum of results.
This could cause performance issue when one tries to read paginated results.