lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: RAMDisk.reload(FSDirectory)
Date Wed, 20 Aug 2008 08:46:44 GMT

I think this would be useful enough to make it available in  
RAMDirectory or Directory?  Quite a few users seem to load the entire  
index into a RAMDirectory.

We already have static Directory.copy method, which is very similar.

Mike

eks dev wrote:

> Hi Mike, that was clear from the beginning, I have asked u bit clumsy.
>
> What I really wanted to ask, given it is not already possible: does  
> this make sense to provide it as a patch. It sound to me rather  
> "narrow" to be useful for wider community, but on the other side  
> having efficient way to re-sync (unidirectional) RAMDirectory with  
> FSDirectory sounds like a nice feature.
>
> we will eventually do it, so if anyone has an interest just shout
>
>
>
>
>
> ----- Original Message ----
>> From: Michael McCandless <lucene@mikemccandless.com>
>> To: java-dev@lucene.apache.org
>> Sent: Tuesday, 19 August, 2008 6:26:50 PM
>> Subject: Re: RAMDisk.reload(FSDirectory)
>>
>>
>> Since Lucene is write-once, this should be fairly simple to do.  You
>> just list the files, remove any that are now gone, copy over any new
>> files?
>>
>> Mike
>>
>> eks dev wrote:
>>
>>> short one, maybe stupid question:
>>>
>>> use case,
>>> - you load your index from Disk into RAMDisk
>>> - Use it in read only mode (no modifications on RAMDisk index)
>>> - Update on disk index from another, external process
>>> - reload only changes into RAM instead of reloading complete index
>>>
>>> is there any way to do this?
>>>
>>> Send instant messages to your online friends http://uk.messenger.yahoo.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message