Issue Bug Closed

#76985BackendUtility::getRecordTitle() method slows down system if record is localizable

André Wuttig 07/07/16, 15:45 updated 10/02/18, 11:09

Description

We detected that, if the TCA for a table is configured for localization like:

'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',

the getRecordTitle() of the TYPO3\CMS\Backend\Utility\BackendUtility class will be called very often while you edit a single record. We found out that this just happens if the record is enabled for localization.

The AbstractItemProvider is responsible for this behaviour. It calls some strange things in addItemsFromForeignTable() method.

In the end we can see that during the edit of one record the FormEngine makes getRecordTitle for each other record in the sysfolder or page where the single record is located.

If you have maybe 500 Records in this sysfolder and use label_userFunc this could lead to massive performance problems.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.