Performance Loss

Author Message

Noicokuna Niemoge

Friday 17 April 2009 3:10:33 am

Hi there;

I'm using import_data extensions to import objects through csv files. The amount of data I imported in eZ 4.0.1 successfully causes internal server errors in version 4.0.3 (script timeout I suppose).

How can I prevent this? I suppose that it's because of generating cache for new objects? Can it be turned off for the time of import and then re-generated on a cron basis, or manually?

Shiki soku ze ku...

Ɓukasz Serwatka

Monday 04 May 2009 2:44:30 pm

Best way to use import script is command line as PHP does not respect execution time limits. However memory limits are taken in to account.

eZ Publish view cache is generated on demand (as long as pre-view cache is disabled, by default it is), thus as long as you don't access the node the view cache won't be generated.

Check error logs to get some info what wrong happened. I bet is was memory limit either you have reached maximum execution time.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 01:13:42
Script start
Timing: Jan 19 2025 01:13:42
Module start 'layout'
Timing: Jan 19 2025 01:13:42
Module start 'content'
Timing: Jan 19 2025 01:13:43
Module end 'content'
Timing: Jan 19 2025 01:13:43
Script end

Main resources:

Total runtime0.6230 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.0049 589.0313152.6094
Module start 'layout' 0.00490.0028 741.640639.4063
Module start 'content' 0.00780.6138 781.0469523.7656
Module end 'content' 0.62160.0014 1,304.81258.1953
Script end 0.6229  1,313.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5277160.0002
Check MTime0.00140.2273160.0001
Mysql Total
Database connection0.00080.128410.0008
Mysqli_queries0.579493.0082540.0107
Looping result0.00060.0925520.0000
Template Total0.577992.820.2889
Template load0.00230.371920.0012
Template processing0.575692.387620.2878
Template load and register function0.00030.041810.0003
states
state_id_array0.00150.241110.0015
state_identifier_array0.00100.161320.0005
Override
Cache load0.00190.3106110.0002
Sytem overhead
Fetch class attribute can translate value0.00080.130020.0004
Fetch class attribute name0.00120.189730.0004
XML
Image XML parsing0.00080.133620.0004
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00090.1383180.0000
String conversion0.00000.001340.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs