Project

General

Profile

Actions

Task #80207

closed

Cleanup retrieval of hash-value and processing in ReferenceIndex

Added by Andreas Allacher about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
Start date:
2017-03-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

In \TYPO3\CMS\Core\Database\ReferenceIndex the updateRefIndexTable method sets
$currentRelations[$relation['hash']] = $currentRelations; which not really makes sense.

https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/core/Classes/Database/ReferenceIndex.php#l224

Since the relation is not used - it would be sufficient to:
  1. Fetch the hash value
  2. Set $currentRelationHashes[$relation['hash']] to true since we only use it to process the records aftwards
Actions

Also available in: Atom PDF