Fetching and sorting limitations

Author Message

Piotrek Karaƛ

Thursday 13 December 2007 5:43:05 am

The documentation says here:
http://ez.no/doc/ez_publish/technical_manual/3_10/reference/modules/content/fetch_functions/list

that it is only supported to sort by the following datatypes:<b>
Checkbox
Date
Date and time
E-mail
Integer
Selection (will not work when used as multiple selector)
Text line
Time</b>

Just checked it for a custom data type that extends a system one which happens to be supported (text line). It sorts fine.

My conclusion is: all data types that manage <b>sort_key_int</b> and/or <b>sort_key_string</b> fields in <b>ezcontentobject_attribute</b> table should generally support sorting without problem. Is that correct?

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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

Main resources:

Total runtime0.0160 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.9219152.6250
Module start 'layout' 0.00630.0031 740.546939.4453
Module start 'content' 0.00940.0042 779.992289.3359
Module end 'content' 0.01370.0022 869.328130.3047
Script end 0.0159  899.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003018.6658140.0002
Check MTime0.00138.2881140.0001
Mysql Total
Database connection0.00074.596210.0007
Mysqli_queries0.003019.039530.0010
Looping result0.00000.086710.0000
Template Total0.001811.410.0018
Template load0.00106.074510.0010
Template processing0.00085.265810.0008
Override
Cache load0.00074.437810.0007
General
dbfile0.00021.316880.0000
String conversion0.00000.058340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs