Actions
Bug #24297
closedbad performance - not using table index while deleting cached imagesize
Start date:
2010-12-06
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
method t3lib_stdGraphic::getCachedImageDimensions deletes row like this:
// file has changed, delete the row
$TYPO3_DB->exec_DELETEquery ('cache_imagesizes', 'md5hash='.$TYPO3_DB->fullQuoteStr($row['md5hash'],'cache_imagesizes'));
but table cache_imagesizes has index on md5filename not on md5hash so it leads to full table scan and slow performance
(issue imported from #M16685)
Files
Actions