[FEATURE] Add PageRepository::getPagesOverlay() 54/36054/5
authorChristian Weiske <cweiske@cweiske.de>
Fri, 16 Jan 2015 21:25:16 +0000 (22:25 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Mon, 19 Jan 2015 12:49:03 +0000 (13:49 +0100)
commit9f6f12f0fcfef0b565a4fcb9f31dd6e780c828ed
tree00754281a6dcbaa0594c044ca6c23f812f2c8f4c
parent030e067b636df2de4300a95f8e5e053fa9d6710e
[FEATURE] Add PageRepository::getPagesOverlay()

PageRepository::getMenu() calls getPageOverlay() for each single page
in a menu, causing a lot of queries to the SQL database.

This patch introduces getPagesOverlay() which is able to fetch multiple
page record overlays at once.
getMenu() is changed to make use of the new method.

It reduces the number of SQL requests on an uncached "features" page
from the introduction package from 721 to 648.

Change-Id: I014c08b6b63bcee99f94567240f1835077f60f0b
Resolves: #64258
Releases: master
Reviewed-on: http://review.typo3.org/36054
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/frontend/Classes/Page/PageRepository.php
typo3/sysext/frontend/Tests/Functional/Fixtures/pages.xml
typo3/sysext/frontend/Tests/Functional/Page/PageRepositoryTest.php