Project

General

Profile

Actions

Bug #82730

open

Opening record in backend painfully slow with foreign table and large main table

Added by Stefan Franke over 6 years ago. Updated 5 months ago.

Status:
Under Review
Priority:
Won't have this time
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2017-10-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Opening a record in the backend can become painfully slow under the following circumstances:

The main table (10.000 records) has got a 1:n relation to a foreign table (3 records). When trying to open the record of the main table in the TYPO3 backend, the following SQL statement is executed that often that it takes an exceptionally long amount of time to actually open the record.

SELECT * FROM `tx_myext_domain_model_foreigntable` WHERE (`uid` = ?) AND (`tx_myext_domain_model_foreigntable`.`deleted` = 0)

TCA of main table:

'attribute' => [
    'exclude' => true,
    'label' => 'attribute',
    'config' => [
        'type' => 'select',
        'renderType' => 'selectSingle',
        'foreign_table' => 'tx_myext_domain_model_foreigntable',
    ],
],


Related issues 4 (3 open1 closed)

Related to TYPO3 Core - Bug #81036: TCA l18n_parent is processed for sys_language_uid 0New2017-04-27

Actions
Related to TYPO3 Core - Bug #84247: TCA label_userfunc called for every record in current page/folderUnder Review2018-03-13

Actions
Related to TYPO3 Core - Bug #82100: Backend Form Dataprovider load every foreign Entity, not only the related oneUnder Review2017-08-14

Actions
Related to TYPO3 Core - Bug #87426: label_alt + label_alt_force for IRRE childs cannot be overwritten using OverrideChildTca() Closed2019-01-14

Actions
Actions

Also available in: Atom PDF