Project

General

Profile

Actions

Task #96729

open

Auto generate database index "language"

Added by Daniel Siepmann almost 3 years ago. Updated 7 months ago.

Status:
Accepted
Priority:
Should have
Assignee:
Category:
Performance
Target version:
-
Start date:
2022-02-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Sprint Focus:

Description

TYPO3 auto generates database columns from TCA configuration.
A typical use case is to have the two columns l10n_parent and sys_language_uid. Some core tables like tt_content create a language index based on these two fields (within its ext_tables.sql ).

Those columns are auto generated, while the index is not. The developer needs to define the index inside ext_tables.sql.

TYPO3 list modules queries translations which slows down the module if a huge amount of records exists in total. The index removes the performance issue.

Therefore it would be cool to auto generate the index if both fields (TCA: languageField and transOrigPointerField ) are configured.


Related issues 3 (2 open1 closed)

Related to TYPO3 Core - Bug #96746: Make it possible to warmup sitemaps (e.g. sitemap.xml) without generating error messages in logClosed2022-02-04

Actions
Related to TYPO3 Core - Feature #103448: Move DB index definition from ext_tables.sql to TCANewStefan Bürk2024-03-21

Actions
Has duplicate TYPO3 Core - Bug #103445: Add language_identifier index by default if languageField and transOrigPointerField are set New2024-03-21

Actions
Actions #1

Updated by Oliver Hader almost 3 years ago

  • Description updated (diff)

Seems to be a valid point (albeit changing indexes and comparing with existing ones might get a bit tricky).

Actions #2

Updated by Oliver Hader almost 3 years ago

  • Status changed from New to Accepted
Actions #3

Updated by Christian Kuhn almost 2 years ago

  • Related to Bug #96746: Make it possible to warmup sitemaps (e.g. sitemap.xml) without generating error messages in log added
Actions #4

Updated by Chris Müller 8 months ago

  • Related to Feature #103448: Move DB index definition from ext_tables.sql to TCA added
Actions #5

Updated by Stefan Bürk 7 months ago

  • Assignee set to Stefan Bürk
Actions #6

Updated by JAKOTA Design Group GmbH 7 months ago

  • Has duplicate Bug #103445: Add language_identifier index by default if languageField and transOrigPointerField are set added
Actions

Also available in: Atom PDF