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

BKDWriter should compress doc ids when all values in a block are the same

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.2, 7.0
    • None
    • None
    • New

    Description

      BKDWriter writes doc ids using 4 bytes per document. I think it should compress similarly to postings when all docs in a block have the same packed value. This can happen either when a field has a default value which is common across documents or when quantization makes the number of unique values so small that a large index will necessarily have blocks that all contain the same value (eg. there are only 63490 unique half-float values).

      Attachments

        1. LUCENE-7351.patch
          14 kB
          Adrien Grand
        2. LUCENE-7351.patch
          17 kB
          Adrien Grand
        3. LUCENE-7351.patch
          19 kB
          Adrien Grand

        Activity

          People

            Unassigned Unassigned
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: