beagle r4524 - branches/beagle-lucene2_1/beagled



Author: dbera
Date: Sat Feb 23 03:32:09 2008
New Revision: 4524
URL: http://svn.gnome.org/viewvc/beagle?rev=4524&view=rev

Log:
Use the same value for flushing batch size as that used in lucene.


Modified:
   branches/beagle-lucene2_1/beagled/BuildIndex.cs
   branches/beagle-lucene2_1/beagled/LuceneCommon.cs

Modified: branches/beagle-lucene2_1/beagled/BuildIndex.cs
==============================================================================
--- branches/beagle-lucene2_1/beagled/BuildIndex.cs	(original)
+++ branches/beagle-lucene2_1/beagled/BuildIndex.cs	Sat Feb 23 03:32:09 2008
@@ -102,7 +102,7 @@
 		static Queue pending_directories = new Queue ();
 		static IndexerRequest pending_request;
 		
-		const int BATCH_SIZE = 30;
+		const int BATCH_SIZE = Lucene.Net.Index.IndexWriter.DEFAULT_MAX_BUFFERED_DOCS;
 		
 		/////////////////////////////////////////////////////////
 		

Modified: branches/beagle-lucene2_1/beagled/LuceneCommon.cs
==============================================================================
--- branches/beagle-lucene2_1/beagled/LuceneCommon.cs	(original)
+++ branches/beagle-lucene2_1/beagled/LuceneCommon.cs	Sat Feb 23 03:32:09 2008
@@ -101,7 +101,7 @@
 		private Lucene.Net.Store.Directory secondary_store = null;
 
 		// Flush if more than this number of requests
-		public const int RequestFlushThreshold = 37; // a total arbitrary magic number
+		public const int RequestFlushThreshold = Lucene.Net.Index.IndexWriter.DEFAULT_MAX_BUFFERED_DOCS; // Use same value as Lucene's flush threshold
 
 		//////////////////////////////////////////////////////////////////////////////
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]