A cure for laziness

Author Message

Tristan Koen

Wednesday 20 August 2003 12:42:51 pm

I have modified my user class, adding some new fields. One of the new fields is "country" and has an 'enum' datatype.

I have a list of countries (there are a couple of hundred of them) that need to be loaded into the enum. This could end up taking a very long time.

Can anyone suggest a more efficient way to load them? INserting directly into the database would be find if somebody could give me the table/row details required for this operation.

Thanks

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 31 2025 06:41:11
Script start
Timing: Jan 31 2025 06:41:11
Module start 'layout'
Timing: Jan 31 2025 06:41:11
Module start 'content'
Timing: Jan 31 2025 06:41:12
Module end 'content'
Timing: Jan 31 2025 06:41:12
Script end

Main resources:

Total runtime1.1742 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 590.0234151.2109
Module start 'layout' 0.00600.0033 741.234436.6328
Module start 'content' 0.00931.1640 777.8672821.6719
Module end 'content' 1.17330.0009 1,599.53917.8750
Script end 1.1742  1,607.4141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2901160.0002
Check MTime0.00140.1152160.0001
Mysql Total
Database connection0.00090.079910.0009
Mysqli_queries1.135196.6664460.0247
Looping result0.00040.0355440.0000
Template Total1.133596.520.5668
Template load0.00280.236320.0014
Template processing1.130796.296520.5654
Template load and register function0.00130.112510.0013
states
state_id_array0.00220.184010.0022
state_identifier_array0.00220.184620.0011
Override
Cache load0.00230.192170.0003
Sytem overhead
Fetch class attribute can translate value0.00040.037210.0004
Fetch class attribute name0.00160.134910.0016
XML
Image XML parsing0.00010.010210.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00070.0626100.0001
String conversion0.00000.000840.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/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: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs