lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oren Eini (Ayende Rahien)" <>
Subject Optimizing lucene updates
Date Sat, 20 Oct 2012 17:06:36 GMT
To start with, I already read this:

I am profiling my Lucene code, and I noticed the following:

[image: Inline image 1]

As you can see, applying the deletes takes quite a bit of time.

I am always assuming that I update the documents in Lucene, so my process

foreach(var item in items) // dummy code, but useful
   indexWriter.DeleteDocuments(new Term("UniqueId", item.Id));


Is there a way to avoid the costly ApplyDeletes if it doesn't need to do
the delete?

  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message