Forums / Developer / ez 3.8.3 really slow

ez 3.8.3 really slow

Author Message

luis muñoz

Wednesday 02 August 2006 6:56:46 am

Hi ez,

I'm trying to update my 3.7.x to 3.8.3. It took me about 6 hours running scripts but now it's done. Last time i tried with 3.8.0 it was more than 1day so it's better now.

My database is big, the tgz dump is 150MB. With 3.7 every thing was working, i had a maximum of 6 seconds without cache and really fast when compiled. Now i have a serious performance problem: When the cache is empty times are ridiculous, about 74 seconds. When in the same siteaccess i go to another page i got 9.6 secconds and that times are with the english siteaccess, which is faster than any other.

During that 70 or more secconds the only thing the server is doing is mysql querys, tons of them:

Total script time: 73.4326 sec 
Mysql Total     
Mysql_queries 57.0676 sec 77.7142% 596 0.0958 sec 
Looping result 0.0670 sec 0.0913% 592 0.0001 sec 

My site is multilingual, but it wasn´t a problem before. Am I missing something? some setting?
I followed steps for upgrading from http://ez.no/download/ez_publish/changelogs/ez_publish_3_8/upgrading

If you need one of the querys here is an example:

Notice: eZMySQLDB::query(15 rows, 6,703.989 ms) query number per page:31 Aug 02 2006 15:25:10 
SELECT ezcontentobject.*,
                       ezcontentobject_tree.*,
                       ezcontentclass.name as class_name,
                       ezcontentclass.identifier as class_identifier
                       
                       , ezcontentobject_name.name as name,  ezcontentobject_name.real_translation 
                   FROM
                      ezcontentobject_tree,
                      ezcontentobject,ezcontentclass
                      , ezcontentobject_name 
                      
                      
                      
                   WHERE
                       path_string like '/1/2/1295/%' and  depth = 3  and  
                      
                      
                      
                      ezcontentclass.version=0 AND
                      
                      ezcontentobject_tree.contentobject_id = ezcontentobject.id  AND
                      ezcontentclass.id = ezcontentobject.contentclass_id AND
                      
                      
                       ezcontentobject_tree.contentobject_id = ezcontentobject_name.contentobject_id and
                                   ezcontentobject_tree.contentobject_version = ezcontentobject_name.content_version and 
 ( ezcontentobject_name.language_id & ezcontentobject.language_mask > 0 AND
     ( (   ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 1 )
   + ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 16 ) >> 3 )
   + ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 8 ) >> 1 )
   + ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 256 ) >> 5 )
   + ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 128 ) >> 3 )
   + ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 64 ) >> 1 )
   + ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 32 ) << 1 )
   + ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 4 ) << 5 )
   + ( ( ( ezcontentobject.language_mask - ( ezcontentobject.language_mask & ezcontentobject_name.language_id ) ) & 2 ) << 7 )
   <
     ( ezcontentobject_name.language_id & 1 )
   + ( ( ezcontentobject_name.language_id & 16 ) >> 3 )
   + ( ( ezcontentobject_name.language_id & 8 ) >> 1 )
   + ( ( ezcontentobject_name.language_id & 256 ) >> 5 )
   + ( ( ezcontentobject_name.language_id & 128 ) >> 3 )
   + ( ( ezcontentobject_name.language_id & 64 ) >> 1 )
   + ( ( ezcontentobject_name.language_id & 32 ) << 1 )
   + ( ( ezcontentobject_name.language_id & 4 ) << 5 )
   + ( ( ezcontentobject_name.language_id & 2 ) << 7 )
 ) 

                      AND ezcontentobject_tree.is_invisible = 0
                      
                       AND 
 ezcontentobject.language_mask & 511 > 0 

                 ORDER BY ezcontentobject_tree.priority DESC
LIMIT 0, 15

 

Thanks

Luis

eZ debug

Timing: Jan 30 2025 21:44:22
Script start
Timing: Jan 30 2025 21:44:22
Module start 'content'
Timing: Jan 30 2025 21:44:23
Module end 'content'
Timing: Jan 30 2025 21:44:23
Script end

Main resources:

Total runtime0.2879 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 587.8281370.3047
Module start 'content' 0.00650.0123 958.13281,001.5000
Module end 'content' 0.01880.2690 1,959.63283,896.8984
Script end 0.2879  5,856.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00461.5944200.0002
Check MTime0.00130.4684200.0001
Mysql Total
Database connection0.00080.276810.0008
Mysqli_queries0.199969.42461410.0014
Looping result0.00140.48051390.0000
Template Total0.268693.310.2686
Template load0.00090.316110.0009
Template processing0.267792.977410.2677
Override
Cache load0.00060.219210.0006
Sytem overhead
Fetch class attribute can translate value0.00200.689110.0020
XML
Image XML parsing0.00020.085810.0002
General
dbfile0.00170.6036200.0001
String conversion0.00000.001730.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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