You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by mitu2009 <mu...@gmail.com> on 2009/10/17 17:03:26 UTC

Need to know pros and cons of using RAMDirectory

Hi,

I need to improve performance of my Lucene search query. Can I use
RAMDirectory?Does it optimize performance?Is there any index size limit for
this? I would appreciate if someone could list pros and cons of using a
RAMDirectory.

Thanks.
-- 
View this message in context: http://www.nabble.com/Need-to-know-pros-and-cons-of-using-RAMDirectory-tp25939035p25939035.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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


Re: Need to know pros and cons of using RAMDirectory

Posted by Erick Erickson <er...@gmail.com>.
Have you looked here for ideas?

http://wiki.apache.org/lucene-java/ImproveSearchingSpeed

Best
Erick

On Sat, Oct 17, 2009 at 11:03 AM, mitu2009 <mu...@gmail.com> wrote:

>
> Hi,
>
> I need to improve performance of my Lucene search query. Can I use
> RAMDirectory?Does it optimize performance?Is there any index size limit for
> this? I would appreciate if someone could list pros and cons of using a
> RAMDirectory.
>
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/Need-to-know-pros-and-cons-of-using-RAMDirectory-tp25939035p25939035.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: Need to know pros and cons of using RAMDirectory

Posted by Karl Wettin <ka...@gmail.com>.
Hi,

you should probably ask your self why your performance is bad before  
looking at solving it by scaling hardware. I.e. what are your  
application needs, how so you solve you needs at index/query time and  
how can you replace this with something better? If you tell us a bit  
more about your corpora and your need we might be able to help you.

But in response to your query, RAMDirectory loads index to memory and  
is thus usually faster than FSDirectory. But a small (or the often  
requested parts of a large) FSDirectory will however be handled by the  
OS level file chache so you might not win anything by switching. You  
simply have to bechmark your index in RAMDirectory and comare it with  
FSDirectory. Perhaps you want to take a look at the benchmark contrib.



17 okt 2009 kl. 17.03 skrev mitu2009:

>
> Hi,
>
> I need to improve performance of my Lucene search query. Can I use
> RAMDirectory?Does it optimize performance?Is there any index size  
> limit for
> this? I would appreciate if someone could list pros and cons of  
> using a
> RAMDirectory.
>
> Thanks.
> -- 
> View this message in context: http://www.nabble.com/Need-to-know-pros-and-cons-of-using-RAMDirectory-tp25939035p25939035.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


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