1
0
Fork 0
This commit is contained in:
Heiko 2018-10-11 10:24:47 +02:00 committed by Jan
parent 676f61805e
commit b0cf8be2d4
2 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,9 @@
devel devel
----- -----
* fix internal issue #2957: the Web UI was not able to display more than 1000
documents, even when it was set to a higher amount.
* dynamically manage libcurl's number of open connections to increase performance * dynamically manage libcurl's number of open connections to increase performance
by reducing the number of socket close and then reopen cycles by reducing the number of socket close and then reopen cycles

View File

@ -183,10 +183,16 @@
var bindVars; var bindVars;
var tmp; var tmp;
var queryObj; var queryObj;
var pageSize = this.getPageSize();
if (pageSize === 'all') {
pageSize = this.MAX_SORT + 38000; // will result in 50k docs
}
bindVars = { bindVars = {
'@collection': this.collectionID, '@collection': this.collectionID,
'offset': this.getOffset(), 'offset': this.getOffset(),
'count': this.getPageSize() 'count': pageSize
}; };
// fetch just the first 25 attributes of the document // fetch just the first 25 attributes of the document
@ -215,7 +221,8 @@
queryObj = { queryObj = {
query: query, query: query,
bindVars: bindVars bindVars: bindVars,
batchSize: pageSize
}; };
if (this.filters.length > 0) { if (this.filters.length > 0) {