[BUGFIX] Process large list of hashes in chunks updating reference index 46/57846/4
authorGleb Levitin <gleb.levitin@dkd.de>
Thu, 9 Aug 2018 15:14:25 +0000 (17:14 +0200)
committerBenni Mack <benni@typo3.org>
Sun, 28 Oct 2018 12:08:57 +0000 (13:08 +0100)
commitca2f7c3ea4d66d521801fd0962494fef11069bab
treeec8b00c0b33e4faa7010c465ef3328889fd07b0a
parented0066a3ee75bab6a6547cd23fa342db3dcc045f
[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/57846
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Guido Schmechel <guido.schmechel@brandung.de>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-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