Problem with fetch function same_classattribute_node

Author Message

Pierre Déchanoz

Thursday 21 October 2010 2:50:39 am

Hello,

I have a problem with this fetch function.

This fetch is not optimized. When the ezcontentobject_attribute.contentclassattribute_id row isn't indexed, the database make a full scan on the table, and it's time consuming.

SELECT ezcontentobject_tree.node_id, ezcontentobject.name, ezcontentobject_tree.parent_node_id FROM ezcontentobject_tree, ezcontentobject, ezcontentobject_attribute WHERE ezcontentobject_attribute.data_text='127.0.1.3' AND ezcontentobject_attribute.contentclassattribute_id='414' AND ezcontentobject_attribute.contentobject_id=ezcontentobject.id AND ezcontentobject_attribute.version=ezcontentobject.current_version AND ezcontentobject_tree.contentobject_version=ezcontentobject.current_version AND ezcontentobject_tree.contentobject_id=ezcontentobject.id ORDER BY ezcontentobject.nameHello,

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

Main resources:

Total runtime0.5937 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.0039 588.0391152.6406
Module start 'layout' 0.00390.0018 740.679739.5000
Module start 'content' 0.00580.5863 780.1797402.4219
Module end 'content' 0.59200.0016 1,182.60168.1250
Script end 0.5937  1,190.7266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.5119160.0002
Check MTime0.00130.2115160.0001
Mysql Total
Database connection0.00040.071710.0004
Mysqli_queries0.559694.2606460.0122
Looping result0.00040.0628440.0000
Template Total0.570396.120.2852
Template load0.00200.335020.0010
Template processing0.568395.720920.2841
Template load and register function0.00020.035310.0002
states
state_id_array0.00020.041310.0002
state_identifier_array0.00120.207320.0006
Override
Cache load0.00160.263690.0002
Sytem overhead
Fetch class attribute can translate value0.00050.082510.0005
Fetch class attribute name0.00120.197910.0012
XML
Image XML parsing0.00010.016810.0001
class_abstraction
Instantiating content class attribute0.00000.001410.0000
General
dbfile0.00150.2463100.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs