[BUGFIX] Break out of foreach if there're no rows in table 54/27554/8
authorStefan Froemken <froemken@gmail.com>
Tue, 11 Feb 2014 18:10:11 +0000 (19:10 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Tue, 4 Mar 2014 16:13:06 +0000 (17:13 +0100)
commit9a63a585097aafebb9577cc3f8de253f30898238
treed0f360d11e8252cbb57af6b0864c90584b29a883
parent7625461f0245266799993b6d2ed9c95eabeb1b0e
[BUGFIX] Break out of foreach if there're no rows in table

Instead of using a slow COUNT on huge tables, we add an
additional query here, which tries to get the first
found record in oder to test if records exists
or not. This new query is extremely fast, because it
uses indexes. It only needs one huge table
like sys_log in your database to see a performance
boost in BE list module.

Resolves: #55891
Releases: 6.2
Change-Id: I920729421bcece8af3b7cdd5f53446e5a1be5300
Reviewed-on: https://review.typo3.org/27554
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Oliver Klee
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php