Merge pull request #576 from herbertsg/BUG-9689
Bug 9689 Improve Solr performance
This commit is contained in:
@@ -563,7 +563,16 @@ class AppSolr
|
|||||||
}
|
}
|
||||||
elseif ($action == 'search') {
|
elseif ($action == 'search') {
|
||||||
// get all the indexes
|
// get all the indexes
|
||||||
$delIndexes = $this->getApplicationDelegationsIndex ($appUID);
|
|
||||||
|
//$delIndexes = $this->getApplicationDelegationsIndex ($appUID);
|
||||||
|
$indexes = $this->aaSearchRecords ($aaappsDBData, array (
|
||||||
|
'APP_UID' => $appUID
|
||||||
|
));
|
||||||
|
|
||||||
|
foreach ($indexes as $index) {
|
||||||
|
$delIndexes[] = $aaappsDBData [$index]['DEL_INDEX'];
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//error an index must always be defined
|
//error an index must always be defined
|
||||||
@@ -600,6 +609,14 @@ class AppSolr
|
|||||||
foreach ($indexes as $index) {
|
foreach ($indexes as $index) {
|
||||||
$row = $aaappsDBData [$index];
|
$row = $aaappsDBData [$index];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!isset($row))
|
||||||
|
{
|
||||||
|
$fh = fopen("SolrAppWhitoutDelIndex.txt", 'a') or die("can't open file to store Solr search time.");
|
||||||
|
fwrite($fh, sprintf("Solr AppUid: %s DelIndex: %s not found.\r\n", $appUID, $delIndex));
|
||||||
|
fclose($fh);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
//$row = $this->getAppDelegationData ($appUID, $delIndex);
|
//$row = $this->getAppDelegationData ($appUID, $delIndex);
|
||||||
|
|
||||||
$aRow ['APP_FINISH_DATE'] = null;
|
$aRow ['APP_FINISH_DATE'] = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user