Skip to content
Snippets Groups Projects
Commit aaa02efa authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Speed up bin/typo3 referencindex:update

By deleting sys_refindex rows pointing to deleted=1
records early, and ignoring soft-deleted ones in
the main loop, we can speed up the call significantly
for instances with many soft-deleted records.

Example data point with my test DB: Before ~24
seconds, with patch ~6 seconds. The more soft-deleted
records exist in a table, the higher the improvement.

Resolves: #102171
Releases: main
Change-Id: I0f567fd2197e06d8da1adc5857c2877a36028c63
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81421


Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarJasmina Ließmann <minapokhalo+typo3@gmail.com>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
parent 3f8c998b
No related merge requests found
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