[BUGFIX] Do not recalculate PIDs for every query in BE search 06/54206/2
authorSusanne Moog <susanne.moog@typo3.com>
Fri, 22 Sep 2017 11:38:24 +0000 (13:38 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Mon, 25 Sep 2017 08:56:27 +0000 (10:56 +0200)
commit4c6ebb31d7125fa72c50792bf4ad549b2e55ea05
tree9b0e79529c0782e9dff9474ab59fc90b944347db
parentd679976e1399ea42bcfe192f2f4a95a004add7ea
[BUGFIX] Do not recalculate PIDs for every query in BE search

The backend search "Show all" link recalculated allowed PIDs for
the current user for all search operations resulting in an
exponentially increasing amount of sql queries depending on the
number of pages in an installation.

As the list of allowed pages for the user does not change during
the request, it is enough to calculate it once.

Change-Id: I9262a5d8425d04cb4ff1e35b2c3cc0ec96b8fa53
Resolves: #82083
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/54206
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Sommer <markus.sommer@typo3.org>
Tested-by: Markus Sommer <markus.sommer@typo3.org>
Reviewed-by: Jan Stockfisch <jan.stockfisch@googlemail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php