Opened 14 months ago

Last modified 8 months 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, 14 months ago

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

comment:2 by Olly Betts, 9 months ago

Component: Other → Library API
Milestone: → 2.0.x

comment:3 by Olly Betts, 8 months ago

Milestone: 2.0.x → 2.x

Milestone renamed

Note: See TracTickets for help on using tickets.