mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
initial code to set the number of parallel requests when indexing
This commit is contained in:
parent
ccab32bb42
commit
5275a50d6d
|
@ -81,6 +81,7 @@ if($view) {
|
|||
$view->setParam('folder', $folder);
|
||||
$view->setParam('converters', $settings->_converters['fulltext']);
|
||||
$view->setParam('timeout', $settings->_cmdTimeout);
|
||||
$view->setParam('maxrequests', 1); // not yet used
|
||||
$view->setParam('accessobject', $accessop);
|
||||
$view($_GET);
|
||||
exit;
|
||||
|
|
|
@ -110,12 +110,13 @@ class SeedDMS_View_Indexer extends SeedDMS_Theme_Style {
|
|||
function js() { /* {{{ */
|
||||
$dms = $this->params['dms'];
|
||||
$user = $this->params['user'];
|
||||
$maxrequests = 5;
|
||||
|
||||
header('Content-Type: application/javascript; charset=UTF-8');
|
||||
?>
|
||||
var queue_count = 0; // Number of functions being called
|
||||
var funcArray = []; // Array of functions waiting
|
||||
var MAX_REQUESTS = 5; // Max requests
|
||||
var MAX_REQUESTS = <?= $maxrequests ?>; // Max requests
|
||||
var CALL_WAIT = 20; // 100ms
|
||||
var docstoindex = 0; // total number of docs to index
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user