Database manteinance

Author Message

luis muñoz

Friday 26 May 2006 10:14:16 am

Just a question.

Is there any script that checks the database for missing nodes, content lost, or any other error between tables? It will be usefull for that nodes broken or lost. A thing like fsck or scandisk for ez nodes. Mysql tools doesnt fix the problem.

Thanks

Kristof Coomans

Friday 26 May 2006 10:58:34 am

I wrote a script one day that I used to repair some errors in the node tree caused by an extension. It's been a while ago so I'I don't know exactly anymore what it did.

If you want I can take a look at it and I'll see if it could be useful for others. Maybe we should bundle our forces and write some scripts that test for errors in the content tree. This also could be useful to check if new extensions work like they should.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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 16:24:47
Script start
Timing: Jan 18 2025 16:24:47
Module start 'layout'
Timing: Jan 18 2025 16:24:47
Module start 'content'
Timing: Jan 18 2025 16:24:48
Module end 'content'
Timing: Jan 18 2025 16:24:48
Script end

Main resources:

Total runtime0.6706 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.2188152.6094
Module start 'layout' 0.00470.0027 741.828139.4297
Module start 'content' 0.00740.6619 781.2578519.9297
Module end 'content' 0.66920.0013 1,301.18758.1875
Script end 0.6706  1,309.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4579160.0002
Check MTime0.00130.1882160.0001
Mysql Total
Database connection0.00060.095610.0006
Mysqli_queries0.630093.9399540.0117
Looping result0.00050.0682520.0000
Template Total0.641695.720.3208
Template load0.00190.283420.0010
Template processing0.639795.394620.3199
Template load and register function0.00020.033110.0002
states
state_id_array0.00080.124510.0008
state_identifier_array0.00140.204720.0007
Override
Cache load0.00150.2267100.0002
Sytem overhead
Fetch class attribute can translate value0.00050.072220.0002
Fetch class attribute name0.00270.403430.0009
XML
Image XML parsing0.00060.088120.0003
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00070.1095160.0000
String conversion0.00000.001140.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