[BUGFIX] Process large list of hashes in chunks updating reference index 56/58756/2
authorBenni Mack <benni@typo3.org>
Sun, 28 Oct 2018 12:12:52 +0000 (13:12 +0100)
committerBenni Mack <benni@typo3.org>
Sun, 28 Oct 2018 12:37:55 +0000 (13:37 +0100)
commit82689e2da41f48991ebebe449cb18222431d525d
tree4c90a891d67bd589c58546cb1c4c87645fbd950d
parent187528f48912d74d461f43e05321c1f97d51f83d
[BUGFIX] Process large list of hashes in chunks updating reference index

The list of old hashes by cleaning up the reference index can
be very long. To avoid exceeding query limits like maximum number
of placeholder per query or the max allowed statement length these
large lists are split into chunks of safe length before processing.

Resolves: #85795
Releases: master, 8.7
Change-Id: Iaebc555fe791f9e41f336bcd30d5b6eb149ad4e9
Reviewed-on: https://review.typo3.org/58756
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Database/ReferenceIndex.php