Re: 答复: about lucene in action 2

2010-03-14 Thread Michael McCandless
sync (fsync to the OS) tells the OS to make sure everything associated with that file is moved to stable storage in the IO system. (It doesn't read anything back). On flush we write the files to disk, which is usually very fast since it writes into the OS's RAM write cache, but we do not sync. s

答复: about lucene in action 2

2010-03-14 Thread luocan19826164
Thanks very much for your patience! Nor are the files "sync"'d.?It means something like reading disk file to RAM,so reader can see it? And why flushing(reopen) is much faster than commit? flushing means writing stuff to disk, commit means writing stuff to disk and then reading the new created di