Scripts to validate object relations

Author Message

David Boman

Friday 24 February 2006 1:39:54 am

Hi,

Browsing my logs I have found error messages related to missing objects (null-values). Tracking it a little bit further I relalised that I had forum posting that had no (or perhaps falty) user object associated with the 'modifier'-field. I have not further inestigated the root cause for this, but it leads me to question of object relation consistency.

I wonder if there exists any script to check the consistency of relations between objects in database?

Tnx,
/Boman

David Boman

Tuesday 28 February 2006 11:05:40 am

Anyone?

If such a script exists or not should be a rather easy question for someone in the eZCrew...

Sergiy Pushchin

Thursday 02 March 2006 8:19:21 am

We do not have it for now, but we are planning to add consistancy check in the future, the first step will be to add correct foreign key definition to all persistant objects,
check out the spec: http://ez.no/community/developer/specs/foreign_key_definition_in_ezpersistenceobject

David Boman

Wednesday 22 March 2006 5:59:23 am

Looks promising! I'll have to write togheter something myself to solve the problem then!

Thanx!

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

Main resources:

Total runtime0.0234 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.0059 588.1328151.2109
Module start 'layout' 0.00590.0042 739.3438220.7031
Module start 'content' 0.01020.0117 960.0469997.7734
Module end 'content' 0.02180.0015 1,957.820333.9922
Script end 0.0233  1,991.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.7087140.0002
Check MTime0.00114.7504140.0001
Mysql Total
Database connection0.00114.896310.0011
Mysqli_queries0.002811.985130.0009
Looping result0.00000.064310.0000
Template Total0.00104.410.0010
Template load0.00083.389310.0008
Template processing0.00020.950910.0002
Override
Cache load0.00062.414010.0006
General
dbfile0.00031.293780.0000
String conversion0.00000.042940.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