how to make ez run faster?

Author Message

Vytautas Germanavičius

Thursday 05 October 2006 10:26:31 pm

I wrote my extension for ez. It is very simple: rubn query select top 10 form table and fetch template to display results.
i tested query on pgMyAdmin - it takes 0.08s. But when i run extension, it takes 4.4s !(according debug info)
why???

{set-block scope=root variable=cache_ttl}0{/set-block}

Claudia Kosny

Friday 06 October 2006 4:57:19 am

Hello vytis

Please give us a bit more information:
- Version of EZ
- Version of PostgreSQL
- the precise query that takes so long
- the listing with the timing points and time accumulators and maybe other interesting debug output

And please don't post the same question twice.

Greetings from Luxembourg

Claudia

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:38:24
Script start
Timing: Jan 19 2025 04:38:24
Module start 'layout'
Timing: Jan 19 2025 04:38:24
Module start 'content'
Timing: Jan 19 2025 04:38:25
Module end 'content'
Timing: Jan 19 2025 04:38:25
Script end

Main resources:

Total runtime1.4583 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1563152.6250
Module start 'layout' 0.00530.0027 741.781339.4453
Module start 'content' 0.00801.4486 781.2266520.5313
Module end 'content' 1.45660.0016 1,301.75788.1641
Script end 1.4582  1,309.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2018160.0002
Check MTime0.00130.0896160.0001
Mysql Total
Database connection0.00070.049610.0007
Mysqli_queries1.414496.9924540.0262
Looping result0.00060.0433520.0000
Template Total1.429598.020.7147
Template load0.00190.126920.0009
Template processing1.427697.898120.7138
Template load and register function0.00010.008210.0001
states
state_id_array0.00100.066910.0010
state_identifier_array0.00160.107020.0008
Override
Cache load0.00150.1010170.0001
Sytem overhead
Fetch class attribute can translate value0.00080.054120.0004
Fetch class attribute name0.00120.079730.0004
XML
Image XML parsing0.00080.052820.0004
class_abstraction
Instantiating content class attribute0.00000.000530.0000
General
dbfile0.00090.0627160.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs