Skip to content
Snippets Groups Projects
Commit c107c7a4 authored by Tizian Schmidlin's avatar Tizian Schmidlin Committed by Benni Mack
Browse files

[TASK] Add index to slug field

`TYPO3\CMS\Core\Routing\PageRouter::getPagesFromDatabaseForCandidates`
looks-up candidates for the page using the `slug` field (and also sorts by
this value). This has some serious impact on the website performance on
systems with lots of pages. In order to optimize this, an index should be
set.

Releases: master
Resolves: #88896
Change-Id: I1aecca781db9562243a15341819b3ce261708836
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61403


Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
Tested-by: default avatarJonas Eberle <flightvision@googlemail.com>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
Reviewed-by: default avatarJonas Eberle <flightvision@googlemail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent f1587a98
......@@ -115,7 +115,8 @@ CREATE TABLE pages (
legacy_overlay_uid int(11) unsigned DEFAULT '0' NOT NULL,
KEY determineSiteRoot (is_siteroot),
KEY language_identifier (l10n_parent,sys_language_uid)
KEY language_identifier (l10n_parent,sys_language_uid),
KEY slug (slug(127))
);
#
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment