[BUGFIX] Avoid redundant SQL queries in ReferenceIndex
Change methods inside ReferenceIndex to allow them to receive an existing record as array rather than a UID to avoid each method loading it from the database again to read record or record fields. For a copy operation on 25 pages with ~100 content elements total there are 1,500 SQL queries less leading to a ~40% time reduction and ~10% memory reduction. Change-Id: I0ed05478dfbc0535efc8d1d29b6a8298d475fb6b Releases: master, 8.7 Resolves: #78634 Reviewed-on: https://review.typo3.org/50566 Reviewed-by:Markus Klein <markus.klein@typo3.org> Tested-by:
Markus Klein <markus.klein@typo3.org> Tested-by:
TYPO3com <no-reply@typo3.com> Reviewed-by:
Kasper Ligaard <kasperligaard+typo3.org@gmail.com> Tested-by:
Kasper Ligaard <kasperligaard+typo3.org@gmail.com> Reviewed-by:
Jigal van Hemert <jigal.van.hemert@typo3.org> Reviewed-by:
Benni Mack <benni@typo3.org> Tested-by:
Benni Mack <benni@typo3.org>
This diff is collapsed.
Please register or sign in to comment