DB : Invalid node ids in eznode_assignment

Author Message

Hugues Charleux

Tuesday 14 December 2010 2:48:11 am

Hi eZ Community.

I am running eZ Publish 4.3 with a lot of data import and just found out a bug in my sync scripts related to eznode_assignment db table.

I have in this table invalid values for the parent_node field, deleted nodes I guess as those node ids are not in any other tables (but in a coherent range).

I tried to delete all rows of eznode_assignment with an invalid parent_node (Yes I like making huge sub selects) :

DELETE FROM eznode_assignment WHERE parent_node NOT IN( SELECT node_id FROM ezcontentobject_tree )

I had about 200 / 17000+ rows in this case.

My scripts are working back and everythings looks ok but that's weird...

Before messing with production, I'd like to know if anyone has experienced such a thing ?

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:19:50
Script start
Timing: Jan 18 2025 02:19:50
Module start 'layout'
Timing: Jan 18 2025 02:19:50
Module start 'content'
Timing: Jan 18 2025 02:19:51
Module end 'content'
Timing: Jan 18 2025 02:19:51
Script end

Main resources:

Total runtime0.7671 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.0064 589.1719152.6406
Module start 'layout' 0.00640.0029 741.812539.4844
Module start 'content' 0.00930.7564 781.2969434.7344
Module end 'content' 0.76570.0013 1,216.03138.1250
Script end 0.7670  1,224.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4195160.0002
Check MTime0.00120.1610160.0001
Mysql Total
Database connection0.00140.181210.0014
Mysqli_queries0.725494.5729460.0158
Looping result0.00040.0513440.0000
Template Total0.736796.020.3683
Template load0.00220.287220.0011
Template processing0.734495.746320.3672
Template load and register function0.00010.012410.0001
states
state_id_array0.00080.106910.0008
state_identifier_array0.00100.135620.0005
Override
Cache load0.00170.2255120.0001
Sytem overhead
Fetch class attribute can translate value0.00060.072810.0006
Fetch class attribute name0.00090.114620.0004
XML
Image XML parsing0.00050.069210.0005
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00080.0993160.0000
String conversion0.00000.001040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/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/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 6

Time used to render debug report: 0.0002 secs