[
https://issues.apache.org/jira/browse/LUCENE-5693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14005795#comment-14005795
]
Shai Erera commented on LUCENE-5693:
------------------------------------
Hmm, I reviewed SortedDVWriter and I understand the ord remapping problem that
Rob was talking about. I was confused and thought that the Codec is the one
that assigns the ords, and so if it receives a {{null}} value, it would be
fine. But it's the SortedDVWriter which assigns the ords, and since it already
assigned an ord to a value of a document that was later deleted, it would need
to remap the ords around it.
So maybe we do only need to focus on postings in this issue. I don't think that
we need to remove the TODO though ... we have plenty of TODOs in the code, and
it's something valid to consider one day, only keep this issue focused for now.
> 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]