[TASK] Improve EM performance when getting extension list from TER 96/27496/6
authorJost Baron <jost@netzkoenig.de>
Sun, 9 Feb 2014 03:22:15 +0000 (04:22 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 11 Feb 2014 22:27:45 +0000 (23:27 +0100)
commit2bfb2a64ada92c3de9a528609f737d6105af5970
treeafe9c6a5d156474efa1a793d2d1a7d5214404487
parent571dba2c8d50b08bec5b819d2397c9246c3551c1
[TASK] Improve EM performance when getting extension list from TER

When importing the extension list from TER, each version of each
extension is one database record. For each extension key the EM
calculates the newest version and sets the column 'current_version'
to 1 for the corresponsing extension record.

The old implementation issued one database query for each extension
key, resulting in about 6k queries, taking a long time to execute
(several minutes on my machine). After applying this patch the same
thing is done in three queries, speeding up the process.

Resolves: #55820
Related: #52949
Releases: 6.2
Change-Id: I55d3699a63b13e7c07af4babbf57d0d06f367027
Reviewed-on: https://review.typo3.org/27496
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Jost Baron
Tested-by: Jost Baron
Reviewed-by: Oliver Klee
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/extensionmanager/Classes/Domain/Repository/ExtensionRepository.php
typo3/sysext/extensionmanager/Classes/Utility/Importer/ExtensionListUtility.php