Performance problems, maybe because of table locking

Author Message

Ivo Lukac

Tuesday 07 July 2009 3:05:56 am

ezidentifier datatype locks tables to ensure uniqeness. It locks ezcontentobject_attribute and ezcontentclass_attribute.
Normally it sounds ok, but we have now more than 8 million rows in ezcontentobject_attribute and system with lot of inserting and editing. So I see time to time locked queries in mysql preocess list.
First question:
Why is ezcontentobject_attribute locked? It seems to me that locking ezcontentclass_attribute would be enough...

Could be that ezurlalias_ml locking in store function is also making problem so second questions is:
Can I disable ezurlaliases?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

André R.

Wednesday 05 August 2009 6:21:09 am

As for second: No, but are you using a older version? I think the locking was removed in favor of auto increment there in version 4.0.2 or something.

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

Ivo Lukac

Thursday 06 August 2009 3:38:33 am

Yes it is 3.10.1 version. In the mean time I hacked kernel to lock only class attribute table and it works fine.

But it is nice to hear that when we upgrade it will work better without the hack :)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

André R.

Thursday 06 August 2009 5:51:47 am

Btw, the ezidentifier issue has also been resolved:
http://issues.ez.no/IssueView.php?Id=15037&activeItem=1&

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

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 19 2025 00:34:03
Script start
Timing: Jan 19 2025 00:34:03
Module start 'layout'
Timing: Jan 19 2025 00:34:03
Module start 'content'
Timing: Jan 19 2025 00:34:04
Module end 'content'
Timing: Jan 19 2025 00:34:04
Script end

Main resources:

Total runtime0.7830 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.1797152.6406
Module start 'layout' 0.00520.0036 741.820339.4766
Module start 'content' 0.00870.7727 781.2969560.4141
Module end 'content' 0.78140.0015 1,341.710912.1250
Script end 0.7829  1,353.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4195160.0002
Check MTime0.00140.1766160.0001
Mysql Total
Database connection0.00080.098210.0008
Mysqli_queries0.726592.7905600.0121
Looping result0.00070.0853580.0000
Template Total0.748495.620.3742
Template load0.00210.269920.0011
Template processing0.746295.309220.3731
Template load and register function0.00010.012310.0001
states
state_id_array0.00190.238110.0019
state_identifier_array0.00180.225820.0009
Override
Cache load0.00180.2265210.0001
Sytem overhead
Fetch class attribute can translate value0.00040.055920.0002
Fetch class attribute name0.00150.187560.0002
XML
Image XML parsing0.00080.108220.0004
class_abstraction
Instantiating content class attribute0.00000.002280.0000
General
dbfile0.00110.1464240.0000
String conversion0.00000.001940.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs