lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Subject NIOFSDirectory is dangerous and should be re-written
Date Sun, 23 Aug 2015 15:00:55 GMT
I checked the latest implementation of NIOFSDirectory in the lucene.net
repository, and it is doing horrible things there.
In particular, it is supposed to be non blocking, but it is calling this
method:

[image: Inline image 1]

This is now a SINGLE GLOBAL LOCK for all reads.
So if you are trying to switch from the SimpleFSDirectory lock per file to
a global lock across all indexes.that would kill any hope of good
performance.

A proper way to handle this, at least on Win32, is shown here:

https://github.com/ayende/ravendb/blob/7c0cce5b1ab08f824d6c51908d88d00a417f5c1f/Raven.Database/Indexing/LuceneCodecDirectory.cs#L129



*Hibernating Rhinos Ltd  *

Oren Eini* l CEO l *Mobile: + 972-52-548-6969

Office: +972-4-622-7811 *l *Fax: +972-153-4-622-7811

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