Author
|
Message
|
Chris Nelson
|
Tuesday 12 January 2010 9:46:58 am
I'm using EZPublish 4.2.0 and EZFind 2.1. We are currently in development, and have some product classes with thousands of objects (one with > 10,000). When we need to remove them for a reimport, it can take hours. Importing was slow, too, but since I set DelayedIndexing=enabled, that is now very speedy. That change did not affect object removal speed. I tried setting OptimizeOnCommit=disabled in ezfind.ini, and this had no effect on object removal speed, either. (Also tried clearing all caches, no luck). Viewing processes, Java is topping out the CPU during object removal, so solr is clearly still being engaged. Is there a way to disable the re-indexing, or is it slow like this for everyone, and this is something I should just get used to?
x
|
Robin Muilwijk
|
Saturday 16 January 2010 1:24:39 am
Hi Chris, Disabling the re-indexing means that after you purged and imported your products, the solr index file is not consistent any more. So this would require a clean re-index, which in turn would most likely run for some time as well. Is disabling the re-indexing really an option?
You might want to keep an eye on the following thread: http://share.ez.no/forums/extensions/ez-find-update-index-clean-taking-too-much-server-resources
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.
LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk
|
Chris Nelson
|
Saturday 16 January 2010 7:28:42 am
Thanks for the reply! The re-indexing is very fast, actually, when done after-the-fact. For example, DelayedIndexing is enabled, and that prevents indexing during the import, and I do a re-indexing pass after that which is very speedy (just a few minutes). It's only the removal that is still slow (2-3 seconds per object removed!), and Java resources spike during the object removal, so I'm convinced that Solr is doing work on the backend, even though DelayedIndexing is enabled and OptimizeOnCommit is disabled. So, delaying re-indexing is not a problem...
x
|
Robin Muilwijk
|
Saturday 16 January 2010 11:02:44 am
Would it be worth a try to completely de-activate eZ Find? See http://ez.no/doc/extensions/ez_find/2_1/installation, same way as you activate the extension. Of course just before you purge and re-import all of your products? I have no idea on the impact of disabling eZ Find, but if you do a re-indexing anyway, I don't think it's going to harm your setup. -- Robin
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.
LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk
|
Paul Borgermans
|
Saturday 16 January 2010 12:47:14 pm
Removing those objects through the API calls a delete and commit with every object to the backend index. This can be indeed be quite slow when there are many objects. Can you file an issue for this? In the current trunk, there are optimisations for high write traffic sites, I'll add a config option to eZ Find that disables commits on delete and add a small script that you can use after the delete operations are finished to issue a commit. (warning: before the commit, deleted objects will still show up in the search and trigger fatal errors as the eZP side calls will fail obviously) @Robin: disabling ezfind alltogether during this delete will indeed speed up the whole operation as well An alternative would be to patch Solr, so it also accepts a "commit within" parameter like it does for updates/additions ... I'll have a look at that too, the Java code to accomplish this is quite simple at first sight. hth Paul
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|
Robin Muilwijk
|
Sunday 17 January 2010 12:01:11 am
@Paul, thanks :) @Chris, you can file an issue here: http://issues.ez.no/HomePage.php? . Tip; when filing the issue, link back to this forum thread. Thanks, Robin
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.
LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk
|
Chris Nelson
|
Monday 18 January 2010 6:18:56 am
Thank you for your responses. I will file the issue today, after I'm out of meetings.
x
|
Gabriele Francescotto
|
Wednesday 24 February 2010 3:36:09 am
Dear Paul, do you have any news about the script or the patch you mentioned above? I have too the problem described by Chris, using ezfind 2.1 on ez 4.2 Many thanks, Gabriele
OpenContent [free software solutions]
via Verdi 19, 38100 Trento (TN) Italy
www.opencontent.it
skype : gabricocek1
twitter: gabricocek
|