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

[TASK] Insert multiple rows when updating refindex

A rather small change to insert all relation rows
at once per handled source row. This gives the
database options to optimize insert operations,
reduces network overhead and number of queries.

My tiny dev setup on an empty sys_refindex table
with a local DB gives a performance gain of
about 5% with referenceindex:update, other
instances will vary, but it won't be slower.

This is good especially with first v13 instance
upgrade, since refindex basically needs a full
rebuild on first run due to the recently
introduces new fields.

Resolves: #104258
Related: #103748
Releases: main
Change-Id: I02bac730847631dbc446110c58a625e6d9fdc030
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85003


Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarGarvin Hicking <gh@faktor-e.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarGarvin Hicking <gh@faktor-e.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 3f86f2ca
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