More Specific Fetching

Author Message

Matthew Rat

Thursday 10 April 2003 1:16:03 pm

I have added 2 fields to the Article class: start_date and stop_date. These are to be used by the template to determine if an article has "expired" or not. I have not been successful in implementing a fetch that will retrieve articles from a given node_id where the start_date is prior to now and where the stop_date is after now. Is this unsupported? I know you can do something similar to this using a "section show=" but that seems incredibly inefficient and could severely slow down the process if you are processing attributes AFTER the database call returns everything in a "folder" or node_id. Any thoughts?

Jan Borsodi

Friday 11 April 2003 7:00:26 am

The only way to this at the moment is to create custom template SQLs for the fetching and either put in a custom template operator or template fetch function.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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

Main resources:

Total runtime0.0172 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.0234152.6250
Module start 'layout' 0.00660.0033 741.648439.4453
Module start 'content' 0.00990.0050 781.093889.2109
Module end 'content' 0.01500.0022 870.304730.3047
Script end 0.0171  900.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002715.7728140.0002
Check MTime0.00127.0203140.0001
Mysql Total
Database connection0.00105.727110.0010
Mysqli_queries0.002715.967330.0009
Looping result0.00000.100010.0000
Template Total0.001810.310.0018
Template load0.00095.453510.0009
Template processing0.00084.824210.0008
Override
Cache load0.00073.815810.0007
General
dbfile0.00031.561380.0000
String conversion0.00000.059740.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