Forums / Install & configuration / RemoveObject is very slow

RemoveObject is very slow

Author Message

Håkan Bergman

Friday 17 September 2010 6:15:01 am

Hello,

I have a site that behaves akwardly when removing multiple objects.

From admin it redirects normally to content/removeobject, and when I delete 1 object it takes a lot of time, but it succeeds. When I choose 2 or more objects, it takes just as long, but the page seem to "time out", returning a blank page. It is only affecting this installation, other installations on same server with same PHP settings works normally.

So is there something in an ini-file that I have been enabled to cause this behaviour or is there other things that cause this behaviour?

Best regards,

Håkan Bergman

Matthieu Sévère

Friday 17 September 2010 6:33:17 am

Hi Hakan,

It may be because you have eZ Find activated and it delete the record in the index + the object. If yes, you may consider the delayIndexing option of eZ Find

--
eZ certified developer: http://ez.no/certification/verify/346216

Gaetano Giunta

Saturday 18 September 2010 5:46:04 am

Unfortunately deindexation upon object removal is not delayed - I think its is a safety measure: whil it is ok not to find existing objects when seraching, if you find unexisting ones you will generally be upset.

So to avoid sending stuff to ezfind upon removal, the only way is to temporarily set the indexation engine to standard (deactivate ezfind) (imho a NULL indexing engine would be a good idea to impprove batch inserts/deletes).

Principal Consultant International Business
Member of the Community Project Board

Matthieu Sévère

Saturday 18 September 2010 5:57:38 am

Gaetano, delayed delete doesn't exist in Solr, but you can use the "disableDeleteCommit" settings in eZ Find (http://ez.no/doc/extensions/ez_find/2_2/basic_configuration/configuration_settings_ez_find) and set up a frequent cronjob to commit object deletion in the index.

--
eZ certified developer: http://ez.no/certification/verify/346216

Håkan Bergman

Tuesday 21 September 2010 1:08:50 am

Thanks for the input.

I do have Ez Find active but I don't really see how to enable the delyed indexing in the manual.

All I found out was to enable DelayedIndexing in SeachSettings in settings/override/site.ini file.

I added the following line under [SearchSettings]:

DelayedIndexing=enabled

I still get the timeout.

Are there other options I need to enable/disable in order for it to work properly?

Matthieu Sévère

Tuesday 21 September 2010 1:15:46 am

As the problem is more when deleting an object you should enable the settings "disableDeleteCommit" as suggested in the post above.

--
eZ certified developer: http://ez.no/certification/verify/346216

Håkan Bergman

Friday 24 September 2010 2:20:02 am

Thanks for the input.

I now use:

DelayedIndexing=enabled (settings/override/site.ini)

DisableDeleteCommits=true (settings/ezfind.ini (ezfind extension))

It is still very slow.

Do I need to have the ezfind engine running? Can that cause this problem?

At the moment this is on a test server and I don't run the java engine 24/7, only when testing it.

eZ debug

Timing: Jan 18 2025 01:04:31
Script start
Timing: Jan 18 2025 01:04:31
Module start 'content'
Timing: Jan 18 2025 01:04:32
Module end 'content'
Timing: Jan 18 2025 01:04:32
Script end

Main resources:

Total runtime0.8817 sec
Peak memory usage4,096.0000 KB
Database Queries209

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 588.8516180.8281
Module start 'content' 0.00690.7549 769.6797629.5625
Module end 'content' 0.76180.1198 1,399.2422341.0859
Script end 0.8816  1,740.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.5285210.0002
Check MTime0.00190.2177210.0001
Mysql Total
Database connection0.00100.112510.0010
Mysqli_queries0.795390.19782090.0038
Looping result0.00210.23652070.0000
Template Total0.840495.320.4202
Template load0.00440.493420.0022
Template processing0.836094.820720.4180
Template load and register function0.00020.018610.0002
states
state_id_array0.00530.606310.0053
state_identifier_array0.00100.112420.0005
Override
Cache load0.00380.4351400.0001
Sytem overhead
Fetch class attribute can translate value0.00130.144940.0003
Fetch class attribute name0.00100.118990.0001
XML
Image XML parsing0.00130.148940.0003
class_abstraction
Instantiating content class attribute0.00000.0026110.0000
General
dbfile0.00390.4414330.0001
String conversion0.00000.000730.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs