Bug #18599
closedTable table index_rel: don't write stopwords into
100%
Description
The table index_rel can grows to enormous size and the performance of searchqueries slow down. I think it is not necessary to write stopwords into the table.
function submitWords($wl,$phash) {
$stopwords = array();
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('wid', 'index_words', 'is_stopword != 0');
while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
$stopwords[$row['wid']] = 1;
}
$GLOBALS['TYPO3_DB']->exec_DELETEquery('index_rel', 'phash='.intval($phash));
foreach($wl as $val) {
if(isset($stopwords[$val['hash']])) {
continue;
}
$insertFields = array(
'phash' => $phash,
'wid' => $val['hash'],
'count' => $val['count'],
'first' => $val['first'],
'freq' => $this->freqMap(($val['count']/$this->wordcount)),
'flags' => ($val['cmp'] & $this->flagBitMask)
);
$GLOBALS['TYPO3_DB']->exec_INSERTquery('index_rel', $insertFields);
}
}
(issue imported from #M8083)
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0) - TYPO3 Version set to 4.1
As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Is Regression set to No
No feedback for over 90 days.
Updated by Tymoteusz Motylewski about 10 years ago
unfortunatelly this is still an issue.
TYPO3\CMS\IndexedSearch\Indexer is writing stopwords into the index_rel table...
This is quite a performance issue.
Updated by Gerrit Code Review about 10 years ago
- Status changed from Closed to Under Review
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/20275
Updated by Gerrit Code Review about 10 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/20275
Updated by Anonymous about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 25633627e6826ba9acf18870bb75d30ae62d7c8b.