Actions
Feature #24110
closedPerformance Tunning : rewrite/clean t3lib_db->listQuery
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2010-11-17
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
Actually the listQuery method is based on 3 "LIKE" separated with OR, so there's 3 string comparaisons instead of just one.
Solution should be :- using "concat" to add comma before and after field value THEN compare this result to the "%,value,%" string
- using mysql builtin FIND_IN_SET function
(issue imported from #M16451)
Files
Updated by Popy no-lastname-given about 14 years ago
BTW, while using LIKE, maybe escapeStrForLike should be used ?
Updated by Georg Ringer about 14 years ago
listquery does already use find_in_set. please check trunk
Updated by Popy no-lastname-given about 14 years ago
Updated by Georg Ringer about 14 years ago
no the official trunk ... long time already since TYPO3 moved ;) https://svn.typo3.org/TYPO3v4/Core/trunk/t3lib/class.t3lib_db.php
Actions