Issue Bug Closed

#20887speed up function t3lib_BEfunc::selectVersionsOfRecord

Rupert Germann 08/14/09, 17:04 updated 08/06/10, 13:26

Description

problem:
when viewing the extended listview in the Backend, TYPO3 does 2 queries for each record to find out if it has versions. The first query fetches the currently displayed record again which is already present in the calling function.

solution:
traverse the current $row to function t3lib_BEfunc::selectVersionsOfRecord() and re-use it instead of fetching it from the DB

when displaying an extended list with 100 records this patch saves 100 queries from the ~800 which are executed, so don’t expect to much from this patch ;-)
(issue imported from #M11722)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.