[TYPO3-core] RFC #13669: Performance: Inefficient fetch of templates from table sys_template

Benjamin Mack benni at typo3.org
Fri Feb 26 12:59:12 CET 2010


Hey Alex,

check out my version, which
  * adds more comments, to make the process clearer
  * renamed some variables to make the code easier to understand
  * using SELECT_getRows to automatically fetch the $subrows array with 
the uid field as keys
  * checks for already included static templates before making the SQL 
query, thus only fetching the arrays we need

Apart from that, +1 after reading and testing of course.

All the best,
Benni.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 13669_v2.patch
Type: text/x-patch
Size: 2068 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100226/716d140a/attachment.bin>


More information about the TYPO3-team-core mailing list