Opened 6 months ago

Last modified 11 hours ago

#840 new enhancement

provide bulk term deletion API to remove multiple terms from a document

Reported by: bremner Owned by: Olly Betts
Priority: normal Milestone: 2.x
Component: Library API Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description

In an email discussion about improving the performance of _notmuch_message_remove_terms, Olly had two suggestions:

A variant of remove_term() which took an iterator could avoid [looking strings up] (and automatically increment the iterator for you).

We could also/instead provide a method to directly remove all terms with a specified prefix (or maybe between two specified terms) from the document, which is probably better for this specific case as I think it can be done even more efficiently.

Change History (3)

comment:1 by bremner, 6 months ago

Summary: provide bulk term deletion APIprovide bulk term deletion API to remove multiple terms from a document

comment:2 by Olly Betts, 5 weeks ago

Component: OtherLibrary API
Milestone: 2.0.x

comment:3 by Olly Betts, 11 hours ago

Milestone: 2.0.x2.x

Milestone renamed

Note: See TracTickets for help on using tickets.