Project

General

Profile

Actions

Bug #22193

closed

Inefficient fetch of templates from table sys_template

Added by Alexander Weggerle over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2010-02-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Every basic template which is included in another template is fetched with a single database query.
So on sites which includes many additional templates in the root template this could be a performance bottleneck.

I attached a patch which fetches all the needed templates with one query.

For the testet site the patch gives an performance boost from 40 requests/s before to 62 requests/s after.
The site includes about 30 basic templates into the root template, which is rather unusual. So i don't think the performance enhancement will be so big on typical sites.
(issue imported from #M13669)


Files

sys_templates.diff (1.61 KB) sys_templates.diff Administrator Admin, 2010-02-25 21:59
sys_templates_2.diff (1.65 KB) sys_templates_2.diff Administrator Admin, 2010-02-25 22:47
sys_templates_3.diff (1.75 KB) sys_templates_3.diff Administrator Admin, 2010-02-25 23:39
13669_4.diff (1.77 KB) 13669_4.diff Administrator Admin, 2010-02-26 10:07
13669_v2.patch (2.02 KB) 13669_v2.patch Administrator Admin, 2010-02-26 12:59
Actions

Also available in: Atom PDF