Re: Loading an index into memory

2009-07-24 Thread Thomas Becker
> that OS can borrow some from your index. This swapping comes with price, > which can or cannot be ok for you. > > > > - Original Message > >> From: Otis Gospodnetic >> To: java-user@lucene.apache.org >> Sent: Thursday, 23 July, 2009 18:55:5

Re: Loading an index into memory

2009-07-23 Thread eks dev
other things, so that OS can borrow some from your index. This swapping comes with price, which can or cannot be ok for you. - Original Message > From: Otis Gospodnetic > To: java-user@lucene.apache.org > Sent: Thursday, 23 July, 2009 18:55:57 > Subject: Re: Loading an

Re: Loading an index into memory

2009-07-23 Thread Otis Gospodnetic
009 9:47:24 AM > Subject: RE: Loading an index into memory > > The size is in bytes and the RAMDirectory stores the bytes in bytes, so size > is equal. I would suggest to not copy the dir into a RAMdirectory. It is > better to use MMapDirectory in this case, as it "swaps" the f

RE: Loading an index into memory

2009-07-23 Thread Dragon Fly
Thank you both. > Date: Thu, 23 Jul 2009 11:55:58 -0400 > Subject: Re: Loading an index into memory > From: erickerick...@gmail.com > To: java-user@lucene.apache.org > > What are you trying to accomplish? I'd insure that my performance wasa > problem before doing an

Re: Loading an index into memory

2009-07-23 Thread Erick Erickson
l Message- > > From: Dragon Fly [mailto:dragon-fly...@hotmail.com] > > Sent: Thursday, July 23, 2009 3:38 PM > > To: java-user@lucene.apache.org > > Subject: Loading an index into memory > > > > > > Hi, > > > > I have a question

RE: Loading an index into memory

2009-07-23 Thread Uwe Schindler
er Str., D-28359 Bremen Tel.: +49 421 218 65595 Fax: +49 421 218 65505 http://www.pangaea.de/ E-mail: uschind...@pangaea.de > -Original Message- > From: Dragon Fly [mailto:dragon-fly...@hotmail.com] > Sent: Thursday, July 23, 2009 3:38 PM > To: java-user@lucene.apache.org >

Loading an index into memory

2009-07-23 Thread Dragon Fly
Hi, I have a question regarding RAMDirectory. I have a 5 GB index on disk and it is opened like the following: searcher = new IndexSearcher (new RAMDirectory (indexDirectory)); Approximately how much memory is needed to load the index? 5GB of memory or 10GB because of Unicode? Does the ent