Forums / Developer / SQL debug output

SQL debug output

Author Message

Victor Dujardin

Tuesday 17 February 2009 7:45:24 am

Hello everyone,

I'm newbie on eZ Publish (v 4.0.1).

My aim is to see which queries are executed when I run one of my eZ website page. For example, the query executed when there is a "fetch" in my template.

I checked the documentation and the forum (even google) and did several manipulations, with no results. I managed to get a debug on the administrator interface but the queries are not what I am looking for.
I'm sure I'veg just missed something obvious but, after several hours, I still don't what.

I'd be pleased if anyone could explain me the right manipulation.

Thank you.

Victor

justin kazadi

Tuesday 17 February 2009 8:39:12 am

Hi victor,

could you please be very clear?

what do you want to do exactly?

do you want to activate the sql debug?
if so go to the administrator interface to the right menu

check the sql debut output , apply the change and clear the cache.

i think is what you want.

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Victor Dujardin

Tuesday 17 February 2009 9:34:28 am

First, thanks for the answer.

Second, my aim is to get the query executed by the template when I load a page.

I did activate SQL debug output: I checked the SQL Debug Output and Debug Output boxes after selecting my website Siteaccess in the dropdownlist.
So I'm sure to have done something wrong in those two steps. Because, I don't get anything anywhere.

But, when I select the "Global (override)" Siteaccess, I get an eZ Debug but not the one I want.

Thank you.

André R.

Tuesday 17 February 2009 12:31:03 pm

Database settings:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/configuration_files/site_ini/databasesettings

Debug settings:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/configuration_files/site_ini/debugsettings

And how to work with ini files:
http://ez.no/doc/ez_publish/technical_manual/4_0/concepts_and_basics/configuration

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Victor Dujardin

Wednesday 18 February 2009 5:49:52 am

What I was looking for was in the /var/log/notice.ini file. I was expecting it to be displayed on my website page, like for the admin interface. My mistake.

Thank you for your time and reply.

Victor

eZ debug

Timing: Jan 20 2025 03:19:15
Script start
Timing: Jan 20 2025 03:19:15
Module start 'content'
Timing: Jan 20 2025 03:19:16
Module end 'content'
Timing: Jan 20 2025 03:19:16
Script end

Main resources:

Total runtime1.2632 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.8359180.8438
Module start 'content' 0.00601.1291 769.6797616.9922
Module end 'content' 1.13510.1281 1,386.6719337.3828
Script end 1.2632  1,724.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3087210.0002
Check MTime0.00140.1138210.0001
Mysql Total
Database connection0.00070.056510.0007
Mysqli_queries1.180193.41992020.0058
Looping result0.00210.16252000.0000
Template Total1.232397.520.6161
Template load0.00200.154720.0010
Template processing1.230397.392720.6152
Template load and register function0.00010.010910.0001
states
state_id_array0.00130.102510.0013
state_identifier_array0.00210.165820.0010
Override
Cache load0.00170.1317420.0000
Sytem overhead
Fetch class attribute can translate value0.00140.110240.0003
Fetch class attribute name0.00100.080380.0001
XML
Image XML parsing0.00410.323640.0010
class_abstraction
Instantiating content class attribute0.00000.0017100.0000
General
dbfile0.00750.5921400.0002
String conversion0.00000.002630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs