list_count an extended_attribute_filte

Author Message

david e

Thursday 04 May 2006 3:13:18 am

is it possible to 'list_count' an 'extended_attribute_filter'? need to work with offset and limit ...

the extended_attribute_filter i'm using is ObjectRelationFilter

thanks,

d.

http://www.ingent.cat/

Marc Boon

Thursday 04 May 2006 3:28:04 am

use: fetch('content', 'list', ...)|count

Xavier Dutoit

Thursday 04 May 2006 3:46:39 am

Hi,

Could you add a suggestion bug to add the extended filter feature on the list_count too ?

X+

http://www.sydesy.com

Nabil Alimi

Friday 05 May 2006 2:01:11 am

Marc Boon, I think doing it this way will be a bit slower since nodes are fetched... But that's how I solved this issue. :)

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

david e

Friday 05 May 2006 2:53:39 am

Suggestion submited! http://ez.no/community/bugs/add_extended_attribute_filte_to_list_count

conting the whole list is not practical. the server has very few resources.

meanwhile my patch is to peek the node object, for instance:

{def $list_count=$node.object.reverse_related_contentobject_count}

svn revision <= 15239 only

d.

http://www.ingent.cat/

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

Main resources:

Total runtime0.8244 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.0313152.6406
Module start 'layout' 0.00460.0025 740.671939.4609
Module start 'content' 0.00710.8160 780.1328626.1563
Module end 'content' 0.82310.0013 1,406.289112.1563
Script end 0.8244  1,418.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3680160.0002
Check MTime0.00120.1475160.0001
Mysql Total
Database connection0.00070.086410.0007
Mysqli_queries0.771493.5664670.0115
Looping result0.00060.0763650.0000
Template Total0.795596.520.3978
Template load0.00190.230220.0009
Template processing0.793696.258620.3968
Template load and register function0.00010.014110.0001
states
state_id_array0.00160.199010.0016
state_identifier_array0.00150.187020.0008
Override
Cache load0.00160.1907240.0001
Sytem overhead
Fetch class attribute can translate value0.00050.066040.0001
Fetch class attribute name0.00120.150770.0002
XML
Image XML parsing0.00110.137140.0003
class_abstraction
Instantiating content class attribute0.00000.002270.0000
General
dbfile0.00090.1137220.0000
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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs