Fecthing equivalent of DISTINCT or UNIQUE

Author Message

Felipe Jaramillo

Friday 30 September 2005 2:45:22 pm

I was curious if there was an equivalent of an SQL DISTINCT or UNIQUE clause for an object attribute.

Eg. if you have an ezstring attribute of Cities, it would be useful to fetch only unique cities to build a dropdown menu or something.

Regards,
Felipe

Felipe Jaramillo
eZ Certified Extension Developer
http://www.aplyca.com | Bogotá, Colombia

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 06:15:48
Script start
Timing: Jan 19 2025 06:15:48
Module start 'layout'
Timing: Jan 19 2025 06:15:48
Module start 'content'
Timing: Jan 19 2025 06:15:48
Module end 'content'
Timing: Jan 19 2025 06:15:48
Script end

Main resources:

Total runtime0.7816 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.0073 591.0469152.6406
Module start 'layout' 0.00740.0040 743.687539.4766
Module start 'content' 0.01140.7690 783.1641427.6172
Module end 'content' 0.78040.0012 1,210.78138.1250
Script end 0.7816  1,218.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4317160.0002
Check MTime0.00140.1801160.0001
Mysql Total
Database connection0.00100.124910.0010
Mysqli_queries0.743195.0756460.0162
Looping result0.00050.0640440.0000
Template Total0.737194.320.3686
Template load0.00210.265820.0010
Template processing0.735094.038220.3675
Template load and register function0.00020.023010.0002
states
state_id_array0.00170.222810.0017
state_identifier_array0.00180.235820.0009
Override
Cache load0.00170.217870.0002
Sytem overhead
Fetch class attribute can translate value0.00070.093010.0007
Fetch class attribute name0.00080.099910.0008
XML
Image XML parsing0.00010.014610.0001
class_abstraction
Instantiating content class attribute0.00000.000610.0000
General
dbfile0.00070.0899100.0001
String conversion0.00000.001440.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/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: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs