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 "Kevin A. Burton" <bu...@newsmonster.org> on 2004/04/20 10:40:41 UTC
Does a RAMDirectory ever need to merge segments... (performance
issue)
I've been benchmarking our indexer to find out if I can squeeze any more
performance out of it.
I noticed one problem with RAMDirectory... I'm storing documents in
memory and then writing them to disk every once in a while. ...
IndexWriter.maybeMergeSegments is taking up 5% of total runtime.
DocumentWriter.addDocument is taking up another 17% of total runtime.
Notice that this doesn't == 100% becuase there are other tasks taking up
CPU before and after Lucene is called.
Anyway... I don't see why RAMDirectory is trying to merge segments. Is
there anyway to prevent this? I could just store them in a big
ArrayList until I'm ready to write them to a disk index but I'm not sure
how efficient this will be.
Anyone run into this before?
--
Please reply using PGP.
http://peerfear.org/pubkey.asc
NewsMonster - http://www.newsmonster.org/
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
AIM/YIM - sfburtonator, Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
IRC - freenode.net #infoanarchy | #p2p-hackers | #newsmonster