[ 
https://issues.apache.org/jira/browse/LUCENE-5693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14005754#comment-14005754
 ] 

Shai Erera commented on LUCENE-5693:
------------------------------------

I don't see what's wrong w/ not sending the values of deleted docs to the DV 
API. As far as they're concerned, they get {{null}} values for 
Sorted/SortedSet/Binary/Numeric, which they should also be prepared for, as not 
all docs will have values even without deletes. And so there won't be any 
ord-remapping? Like if all docs associated w/ value "foo" are deleted, "foo" 
won't be sent to the Codec in the first place, and therefore will never receive 
an ord?

I wonder how complicated it is to patch it up, so we can look at it. And 
perhaps we'd even be able to tell if there's any code that breaks.

> don't write deleted documents on flush
> --------------------------------------
>
>                 Key: LUCENE-5693
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5693
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>         Attachments: LUCENE-5693.patch
>
>
> When we flush a new segment, sometimes some documents are "born deleted", 
> e.g. if the app did a IW.deleteDocuments that matched some not-yet-flushed 
> documents.
> We already compute the liveDocs on flush, but then we continue (wastefully) 
> to send those known-deleted documents to all Codec parts.
> I started to implement this on LUCENE-5675 but it was too controversial.
> Also, I expect typically the number of deleted docs is 0, or small, so not 
> writing "born deleted" docs won't be much of a win for most apps.  Still it 
> seems silly to write them, consuming IO/CPU in the process, only to consume 
> more IO/CPU later for merging to re-delete them.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to