Re: [xwiki-devs] [xwiki-notifications] r9365 - xwiki-platform/xwiki-plugins/trunk/lucene/src/main/java/com/xpn/xwiki/plugin/lucene
Hi Sergiu, Why 1 mn and not 30 sec as proposed by Ludovic? He convinced me that it doesn't cost anything to run it every 30 sec and that'll spread the indexing work (like the GC does) and let users search faster when new changes are made to docs. Thanks -Vincent On Apr 25, 2008, at 2:50 AM, sdumitriu (SVN) wrote:
Author: sdumitriu Date: 2008-04-25 02:50:17 +0200 (Fri, 25 Apr 2008) New Revision: 9365
Modified: xwiki-platform/xwiki-plugins/trunk/lucene/src/main/java/com/xpn/ xwiki/plugin/lucene/IndexUpdater.java Log: XPLUCENE-10: Reduce the default indexing period to 1 minute
Modified: xwiki-platform/xwiki-plugins/trunk/lucene/src/main/java/ com/xpn/xwiki/plugin/lucene/IndexUpdater.java =================================================================== --- xwiki-platform/xwiki-plugins/trunk/lucene/src/main/java/com/xpn/ xwiki/plugin/lucene/IndexUpdater.java 2008-04-25 00:30:08 UTC (rev 9364) +++ xwiki-platform/xwiki-plugins/trunk/lucene/src/main/java/com/xpn/ xwiki/plugin/lucene/IndexUpdater.java 2008-04-25 00:50:17 UTC (rev 9365) @@ -55,7 +55,7 @@ /** * Milliseconds of sleep between checks for changed documents */ - private int indexingInterval = 3000; + private int indexingInterval = 60000;
private boolean exit = false;
@@ -405,7 +405,7 @@
this.indexingInterval = 1000 * Integer.parseInt(config - .getProperty(LucenePlugin.PROP_INDEXING_INTERVAL, "300")); + .getProperty(LucenePlugin.PROP_INDEXING_INTERVAL, "60"));
// Note: There's no need to open the Searcher here (with a call to // openSearcher()) as each
_______________________________________________ notifications mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/notifications
Vincent Massol wrote:
Hi Sergiu,
Why 1 mn and not 30 sec as proposed by Ludovic? He convinced me that it doesn't cost anything to run it every 30 sec and that'll spread the indexing work (like the GC does) and let users search faster when new changes are made to docs.
1 min seemed to be a round number... Don't know if it is a big difference between 30 and 60 seconds, but if you want 30, I have nothing against it. -- Sergiu Dumitriu http://purl.org/net/sergiu/
well since ludovic put it at 30 sec and you changed it I thought you had a good reason to do that... If not then let's use 30sec (this is what Ludovic is currently testing with on curriki I believe). Thanks -Vincent On Apr 25, 2008, at 1:24 PM, Sergiu Dumitriu wrote:
Vincent Massol wrote:
Hi Sergiu,
Why 1 mn and not 30 sec as proposed by Ludovic? He convinced me that it doesn't cost anything to run it every 30 sec and that'll spread the indexing work (like the GC does) and let users search faster when new changes are made to docs.
1 min seemed to be a round number... Don't know if it is a big difference between 30 and 60 seconds, but if you want 30, I have nothing against it. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (2)
-
Sergiu Dumitriu -
Vincent Massol