Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4539

DocValues impls should read all headers up-front instead of per-directsource

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • core/index
    • None
    • New

    Description

      Currently, when DocValues opens, it just opens files. it doesnt read codec headers etc.

      Instead we read these every single time a directsource opens.

      I think it should work like PostingsReaders: e.g. the PackedInts impl would read its versioning info and codec headers and creating a new Direct impl should be a IndexInput.clone() + getDirectReaderNoHeader().

      Today its much more costly.

      Attachments

        1. LUCENE-4539.patch
          17 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: