export data - Matrix?

Author Message

laurent le cadet

Wednesday 01 August 2007 9:59:44 am

Hi,

I'm building a class for cooking recipes which will be exported regulary as a csv file.

In this class, I want to list all ingredients used in the recipe.
As the list will be different for each recipe, I'm looking for the best datatype to use.

The simpliest solution is to use a fix number of optional text lines but as there is some recipes with more than 15 ingredients, the result will be a heavy class.

I'm thinking about the matrix one but I know it's not very suitable for an export.

Any hint?

Regards.

Laurent

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 18 2025 16:08:59
Script start
Timing: Jan 18 2025 16:08:59
Module start 'layout'
Timing: Jan 18 2025 16:08:59
Module start 'content'
Timing: Jan 18 2025 16:08:59
Module end 'content'
Timing: Jan 18 2025 16:08:59
Script end

Main resources:

Total runtime0.7386 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.0067 587.7969152.6094
Module start 'layout' 0.00680.0036 740.406339.4297
Module start 'content' 0.01040.7271 779.8359434.3125
Module end 'content' 0.73740.0012 1,214.14848.1875
Script end 0.7386  1,222.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4716160.0002
Check MTime0.00140.1933160.0001
Mysql Total
Database connection0.00110.147510.0011
Mysqli_queries0.692993.8105460.0151
Looping result0.00040.0609440.0000
Template Total0.705495.520.3527
Template load0.00220.300120.0011
Template processing0.703195.195320.3516
Template load and register function0.00010.013510.0001
states
state_id_array0.00090.124610.0009
state_identifier_array0.00070.099820.0004
Override
Cache load0.00180.2505130.0001
Sytem overhead
Fetch class attribute can translate value0.00100.135010.0010
Fetch class attribute name0.00090.121420.0004
XML
Image XML parsing0.00050.064710.0005
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00070.0924160.0000
String conversion0.00000.001140.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
1content/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/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 6

Time used to render debug report: 0.0001 secs