On 6 Aug 2009, at 15:19, Emmanuel Bernard wrote:
Begin forwarded message:
Date: August 4, 2009 08:53:07 EDT
Subject: Re: [infinispan-dev] [hibernate-dev] Spliting Lucene segments in Infinispan Directory
do you have some insight? We can't really understand why this is split.
On Jul 30, 2009, at 19:51, Łukasz Moreń wrote:
The JBoss Cache directory for Lucene splits each Lucene segment into
pieces - chunks. Similar solutions exists in Lucene RamDirectory
Smaller chunks mean smaller replication units, and finer grained locking (although the latter may not really be useful since you want to lock the entire 'file' each time).
Are there some pros to use such splitting approach in Infinispan
directory case? Some buffer size is recommended?
For Infinispan though, I suggest not really bothering with this, unless you feel that individual files would really be very large and possibly too large to fit in memory - in which case chunking would make sense again.