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

Reduce memory allocated by CompressingStoredFieldsWriter to write large strings

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.4, 6.0
    • core/codecs
    • None
    • New

    Description

      In SOLR-7927, I am trying to reduce the memory required to index very large documents (between 10 to 100MB) and one of the places which allocate a lot of heap is the UTF8 encoding in CompressingStoredFieldsWriter. The same problem existed in JavaBinCodec and we reduced its memory allocation by falling back to a double pass approach in SOLR-7971 when the utf8 size of the string is greater than 64KB.

      I propose to make the same changes to CompressingStoredFieldsWriter as we made to JavaBinCodec in SOLR-7971.

      Attachments

        1. LUCENE-6779_alt.patch
          6 kB
          Robert Muir
        2. LUCENE-6779.patch
          13 kB
          Shalin Shekhar Mangar
        3. LUCENE-6779.patch
          9 kB
          Shalin Shekhar Mangar
        4. LUCENE-6779.patch
          8 kB
          Shalin Shekhar Mangar
        5. LUCENE-6779.patch
          8 kB
          Shalin Shekhar Mangar

        Issue Links

          Activity

            People

              shalin Shalin Shekhar Mangar
              shalin Shalin Shekhar Mangar
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: