#23485Usage of defaultFreeIndexUidList causes identical queries
Description
At least in indexed_search version 2.11.0 setting plugin.tx_indexedsearch.search.defaultFreeIndexUidList seems to cause multiple calls of tx_indexedsearch::getPhashList – one for every uid in the list. The query generated / executed in that method is allways identical and thereby causes unnecessary load.
Quick fix: in the method getResultRows_SQLpointer make $list static and check if it allready contains a value different from the default one:
static $list = NULL;
if($list === NULL) {
$list = $this->getPhashList($sWArr);
}
(issue imported from #M15608)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.