On Tue, Sep 9, 2008 at 12:41 PM, Michael McCandless <[EMAIL PROTECTED]> wrote: > Yonik Seeley wrote: >> OR, if all writes are append-only, perhaps we don't ever need to >> invalidate the read buffer and would just need to remove the current >> logic that caches the file length and then let the underlying >> RandomAccessFile do the EOF checking. > > All writes to these files are append only, and, when we open the IndexInput > we would never read beyond it's current length (once we flush our > IndexOutput) because that's the local maxDocID limit.
Right, but it would be nice to not have to open a new IndexInput for each snapshot... opening a file is not a quick operation. -Yonik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]