do you mean software RAM disk? using RAM to simulate disk? How to deal with Persistence?
maybe I can hack by increase RAMOutputStream.BUFFER_SIZE from 1024 to 1024*1024. it may have a waste. but I can adjust my merge policy to avoid to much segments. I will have a "big" segment and a "small" segment. Every night I will merge them. new added documents will flush into a new segment and I will merge the new generated segment and the small one. Our update operations are not very frequent. On Mon, Jun 11, 2012 at 4:59 PM, Paul Libbrecht <p...@hoplahup.net> wrote: > Li Li, > > have you considered allocating a RAM-Disk? > It's not the most flexible thing... but it's certainly close, in performance > to a RAMDirectory. > MMapping on that is likely to be useless but I doubt you can set it to zero. > That'd need experiment. > > Also, doesn't caching and auto-warming provide the lowest latency for all > "expected queries" ? > > Paul > > > Le 11 juin 2012 à 10:50, Li Li a écrit : > >> I want to use lucene 3.6 providing searching service. my data is >> not very large, raw data is less that 1GB and I want to use load all >> indexes into memory. also I need save all indexes into disk >> persistently. >> I originally want to use RAMDirectory. But when I read its javadoc. > >