From d8643908a7d6243c361e670573af763067db408d Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 16 Jan 2013 19:05:22 +0100 Subject: Bug 819432: Execute queries in two steps to improve performance r=dkl a=LpSolit --- template/en/default/list/list.html.tmpl | 11 +++++++---- template/en/default/reports/report.html.tmpl | 4 +++- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'template') diff --git a/template/en/default/list/list.html.tmpl b/template/en/default/list/list.html.tmpl index 3be607a38..dcc140cf2 100644 --- a/template/en/default/list/list.html.tmpl +++ b/template/en/default/list/list.html.tmpl @@ -72,10 +72,13 @@ [% IF debug %]
-

[% query FILTER html %]

-

Execution time: [% query_time FILTER html %] seconds

- [% IF query_explain.defined %] -
[% query_explain FILTER html %]
+

Total execution time: [% query_time FILTER html %] seconds

+ [% FOREACH query = queries %] +

[% query.sql FILTER html %]

+

Execution time: [% query.time FILTER html %] seconds

+ [% IF query.explain %] +
[% query.explain FILTER html %]
+ [% END %] [% END %]
[% END %] diff --git a/template/en/default/reports/report.html.tmpl b/template/en/default/reports/report.html.tmpl index 8dc4bc5a7..2ca5dd90f 100644 --- a/template/en/default/reports/report.html.tmpl +++ b/template/en/default/reports/report.html.tmpl @@ -61,7 +61,9 @@ %] [% IF debug %] -

[% query FILTER html %]

+ [% FOREACH query = queries %] +

[% query.sql FILTER html %]

+ [% END %] [% END %]
-- cgit v1.2.3-24-g4f1b