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

Never count soft-deletes if reader has no hard-deletes

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.5, 8.0
    • Fix Version/s: 7.7, 8.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      Today we count the actual soft-deletes during a merge which is
      unnecessary if there are no hard-deletes present. In this case, which
      is considered to be the common case we can get accurate counts by substracting
      the number of deleted docs in the wrapped reader from the number of soft-deletes
      in that reader.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                simonw Simon Willnauer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m