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.

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

Main resources:

Total runtime0.7287 sec
Peak memory usage4,096.0000 KB
Database Queries72

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.0156152.6250
Module start 'layout' 0.00740.0045 740.640639.4453
Module start 'content' 0.01180.7153 780.0859624.4844
Module end 'content' 0.72720.0015 1,404.570316.1641
Script end 0.7287  1,420.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4768160.0002
Check MTime0.00130.1782160.0001
Mysql Total
Database connection0.00090.124710.0009
Mysqli_queries0.655589.9547720.0091
Looping result0.00070.1009700.0000
Template Total0.680693.420.3403
Template load0.00160.226320.0008
Template processing0.678993.163620.3394
Template load and register function0.00020.021110.0002
states
state_id_array0.00190.265910.0019
state_identifier_array0.00090.118020.0004
Override
Cache load0.00150.2002400.0000
Sytem overhead
Fetch class attribute can translate value0.00050.074330.0002
Fetch class attribute name0.00140.191690.0002
XML
Image XML parsing0.00120.165930.0004
class_abstraction
Instantiating content class attribute0.00000.0040110.0000
General
dbfile0.00110.1451220.0000
String conversion0.00000.001440.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs