Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-User

Storing information

 

 

Lucene java-user RSS feed   Index | Next | Previous | View Threaded


blazingwolf7 at gmail

Jul 21, 2008, 8:27 PM

Post #1 of 3 (152 views)
Permalink
Storing information

Hi,

I am using Lucene to perform searching. I have certain information that will
be loaded everytime a search is run. This means, if there are multiple user
running the search at the same time, the information will be loaded multiple
times.

This is not effecient at all, so I was wondering is there anyway I can load
those values only once, and every search perform after that no matter how
many user will simply refer to the preloaded values?

Thanks
--
View this message in context: http://www.nabble.com/Storing-information-tp18581695p18581695.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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


yonik at apache

Jul 21, 2008, 8:49 PM

Post #2 of 3 (147 views)
Permalink
Re: Storing information [In reply to]

On Mon, Jul 21, 2008 at 11:27 PM, blazingwolf7 <blazingwolf7[at]gmail.com> wrote:
> I am using Lucene to perform searching. I have certain information that will
> be loaded everytime a search is run. This means, if there are multiple user
> running the search at the same time, the information will be loaded multiple
> times.

Is this a Lucene question?
Anyway, refer to the Lucene FieldCache for an example of how to avoid
multiple threads from creating more than one cached object.

-Yonik

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


gsingers at apache

Jul 22, 2008, 10:32 AM

Post #3 of 3 (129 views)
Permalink
Re: Storing information [In reply to]

You may also want a Document cache and or even a Query cache,
depending on your situation.

-Grant

On Jul 21, 2008, at 11:49 PM, Yonik Seeley wrote:

> On Mon, Jul 21, 2008 at 11:27 PM, blazingwolf7
> <blazingwolf7[at]gmail.com> wrote:
>> I am using Lucene to perform searching. I have certain information
>> that will
>> be loaded everytime a search is run. This means, if there are
>> multiple user
>> running the search at the same time, the information will be loaded
>> multiple
>> times.
>
> Is this a Lucene question?
> Anyway, refer to the Lucene FieldCache for an example of how to avoid
> multiple threads from creating more than one cached object.
>
> -Yonik
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe[at]lucene.apache.org
> For additional commands, e-mail: java-user-help[at]lucene.apache.org
>

--------------------------
Grant Ingersoll
http://www.lucidimagination.com

Lucene Helpful Hints:
http://wiki.apache.org/lucene-java/BasicsOfPerformance
http://wiki.apache.org/lucene-java/LuceneFAQ








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

Lucene java-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.