Configuring Solr to use RAMDirectory

View: New views
3 Messages — Rating Filter:   Alert me  

Configuring Solr to use RAMDirectory

by Thomas Nguyen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it possible to configure Solr to fully load indexes in memory?  I
wasn't able to find any documentation about this on either their site or
in the Solr 1.4 Enterprise Search Server book.


Re: Configuring Solr to use RAMDirectory

by Otis Gospodnetic :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think not out of the box, but look at SOLR-243 issue in JIRA.

You could also put your index on ram disk (tmpfs), but it would be useless for writing to it.

Note that when people ask about loading the whole index in memory explicitly, it's often a premature optimization attempt.

Otis
--
Sematext is hiring -- http://sematext.com/about/jobs.html?mls
Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR



----- Original Message ----
> From: Thomas Nguyen <thnguyen@...>
> To: solr-user@...
> Sent: Wed, November 11, 2009 8:46:11 PM
> Subject: Configuring Solr to use RAMDirectory
>
> Is it possible to configure Solr to fully load indexes in memory?  I
> wasn't able to find any documentation about this on either their site or
> in the Solr 1.4 Enterprise Search Server book.


Re: Configuring Solr to use RAMDirectory

by aklochkov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I thought that SOLR-465 just does what is asked, i.e. one can use any
Directory implementation including RAMDirectory. Thomas, take a look at it.

On Thu, Nov 12, 2009 at 7:55 AM, Otis Gospodnetic <
otis_gospodnetic@...> wrote:

> I think not out of the box, but look at SOLR-243 issue in JIRA.
>
> You could also put your index on ram disk (tmpfs), but it would be useless
> for writing to it.
>
> Note that when people ask about loading the whole index in memory
> explicitly, it's often a premature optimization attempt.
>
> Otis
> --
> Sematext is hiring -- http://sematext.com/about/jobs.html?mls
> Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR
>
>
>
> ----- Original Message ----
> > From: Thomas Nguyen <thnguyen@...>
> > To: solr-user@...
> > Sent: Wed, November 11, 2009 8:46:11 PM
> > Subject: Configuring Solr to use RAMDirectory
> >
> > Is it possible to configure Solr to fully load indexes in memory?  I
> > wasn't able to find any documentation about this on either their site or
> > in the Solr 1.4 Enterprise Search Server book.
>
>


--
Andrew Klochkov
Senior Software Engineer,
Grid Dynamics