[Xapian-tickets] [Xapian] #388: Allow lazy document deletion
Xapian
nobody at xapian.org
Sun Jul 12 12:08:03 BST 2009
#388: Allow lazy document deletion
---------------------------+------------------------------------------------
Reporter: richard | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone:
Component: Backend-Chert | Version: SVN trunk
Severity: normal | Blockedby:
Platform: All | Blocking:
---------------------------+------------------------------------------------
Currently, document deletion works by reading the termlist for the
document, and updating the posting lists for each term immediately.
Instead, we could keep a list of deleted document ids, and merge this list
with the posting lists when iterating through them. This would allow
deletion to be performed even when the termlist table is not present. The
downside is that the statistics for the frequency of terms in the deleted
documents would be incorrect.
Xapian-compact should be updated to merge the list with the database (ie,
to apply the deletions) - this could probably be done with little extra
overhead, since xapian-compact already needs to read through the posting
lists.
--
Ticket URL: <http://trac.xapian.org/ticket/388>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list