Group_by date .. how to !?!

Author Message

Marvix Marx

Thursday 14 June 2007 5:39:37 pm

I cann`t find any place for more info about "Group_by" ... just grouping by date/day .. and its not working also !

{let
        dates=fetch( 'content','tree',hash( 
                                parent_node_id, 2,
                                class_filter_type, 'include',
                                class_filter_array, array('article'),
								sort_by, array('published', true() ),
								group_by, array( "published",  "day" ) ,
                                'limit', 100
								
                                )
                        )
}

with "group_by" or without I get 100 date, 80 of them same date ... how to group them ?!

The sql debug saying " GROUP BY ( ezcontentobject.published / 86400 ) "

but the publish date is time stamp ... that mean even the seconds in there ... will never do group with this way ,,, any one have any idea about this ?

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

Main resources:

Total runtime1.1236 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.0085 587.9063152.6250
Module start 'layout' 0.00850.0036 740.531339.4453
Module start 'content' 0.01211.1100 779.9766400.9375
Module end 'content' 1.12210.0015 1,180.91418.1641
Script end 1.1236  1,189.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2995160.0002
Check MTime0.00140.1234160.0001
Mysql Total
Database connection0.00160.138910.0016
Mysqli_queries1.084096.4711460.0236
Looping result0.00060.0571440.0000
Template Total1.074095.620.5370
Template load0.00190.169820.0010
Template processing1.072195.410720.5360
Template load and register function0.00010.012710.0001
states
state_id_array0.00650.582910.0065
state_identifier_array0.00180.158420.0009
Override
Cache load0.00150.135190.0002
Sytem overhead
Fetch class attribute can translate value0.00170.149810.0017
Fetch class attribute name0.00110.099510.0011
XML
Image XML parsing0.00010.012710.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00070.0590100.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
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/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs