Help with fetch limitation

Author Message

Daniel Guerrier

Wednesday 24 August 2005 12:25:35 pm

I am trying to construct a fetch that is limited to a certain letter of the alphabet.

In other words how do fetch all items of a content class that have an attibute text that starts with the letter 'A'.

I see fetches that can limit it by a text value but I want to limit by the starting letter.

Thanks

Marko Žmak

Wednesday 24 August 2005 4:51:08 pm

Use the LIKE operator for atrinute filtering. For details check out this post by Konrad Mazurkiewicz:

http://ez.no/community/forum/developer/attribute_filtering

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 01:31:49
Script start
Timing: Jan 31 2025 01:31:49
Module start 'layout'
Timing: Jan 31 2025 01:31:49
Module start 'content'
Timing: Jan 31 2025 01:31:50
Module end 'content'
Timing: Jan 31 2025 01:31:50
Script end

Main resources:

Total runtime1.1680 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.1328151.2109
Module start 'layout' 0.00570.0035 739.3438220.6875
Module start 'content' 0.00911.1580 960.03134,431.4219
Module end 'content' 1.16710.0009 5,391.45317.8516
Script end 1.1680  5,399.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2936160.0002
Check MTime0.00120.1030160.0001
Mysql Total
Database connection0.00060.053410.0006
Mysqli_queries1.090693.3677540.0202
Looping result0.00050.0467520.0000
Template Total1.114895.420.5574
Template load0.00190.160420.0009
Template processing1.112995.280320.5564
Template load and register function0.00150.124710.0015
states
state_id_array0.00150.127110.0015
state_identifier_array0.00250.215120.0013
Override
Cache load0.00150.1296110.0001
Sytem overhead
Fetch class attribute can translate value0.00190.163320.0010
Fetch class attribute name0.00260.219130.0009
XML
Image XML parsing0.00090.080620.0005
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00100.0864180.0001
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
2content/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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 5

Time used to render debug report: 0.0001 secs