[TYPO3-core] RFC #13273: Bug: Caching framework sub-select is slow because mysql does not use indexes on outer query

Christian Kuhn lolli at schwarzbu.ch
Fri Mar 26 16:23:21 CET 2010


Attached v2 taking Susannes finding into account and adding a minor fix 
to the testcases to catch the error in future.

Now we need a core review :)

Regards
Christian


Christian Kuhn wrote:
> This is an SVN patch request.
> 
> Type: bugfix
> 
> BT reference: http://bugs.typo3.org/view.php?id=13273
> 
> Branches: trunk, TYPO3_4-3
> 
> Problem:
> mysql is unable to use indexes for outer query if where clause is a sub
> select [1]. This makes tag-deletion in the caching framework with db
> backend very slow on bigger tables because mysql happily decides to
> perform a full table scan.
> 
> Solution:
> Separate queries and do more logic with php.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13273_02.diff
Type: text/x-patch
Size: 3717 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100326/d69c5eda/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13273_02_testcase_fix.diff
Type: text/x-patch
Size: 897 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100326/d69c5eda/attachment-0001.bin>


More information about the TYPO3-team-core mailing list