Project

General

Profile

Actions

Task #96729

open

Auto generate database index "language"

Added by Daniel Siepmann about 2 years ago. Updated 7 days 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 2 (1 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
Actions #1

Updated by Oliver Hader about 2 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 about 2 years ago

  • Status changed from New to Accepted
Actions #3

Updated by Christian Kuhn over 1 year 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 about 1 month ago

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

Updated by Stefan Bürk 7 days ago

  • Assignee set to Stefan Bürk
Actions

Also available in: Atom PDF