Re: [PATCH 4/4] CLI/git: replace calls to notmuch-search with database access

Subject: Re: [PATCH 4/4] CLI/git: replace calls to notmuch-search with database access

Date: Sat, 9 Jul 2022 21:35:21 +0200

To: David Bremner

Cc: Tomi Ollila, notmuch@notmuchmail.org

From: Michael J Gruber


Am Do., 7. Juli 2022 um 17:59 Uhr schrieb David Bremner <david@tethera.net>:
>
> Tomi Ollila <tomi.ollila@iki.fi> writes:
>
> > On Sun, Jul 03 2022, David Bremner wrote:
> >
> > I've trying to think if there were a way to somehow run only one notmuch
> > command instead of notmuch search on all maeby-deleted files -- or
> > alternatively attempt to load python bindings and in case of failure use
> > the notmuch-search methid...
> >
>
> We could run one notmuch-dump command to get a list of the message-ids
> in the database, and build a dictionary in memory. Might be a bit slow?
> Here it would take 10-15s just do the dump. But certainly faster than
> 500K execs of notmuch search

When I first saw that `notmuch-git` is implemented in python and calls
out to `notmuch search` I wondered: Why doesn't it use the python
bindings?

I don't think "building the project partially and installing by
copying parts somewhere" is a use case that the design implementation
has to cater for, especially if this incurs performance penalties.
Scripting around `notmuch dump` does not make things better.

I do understand that you want lean dependencies server side, but
having python there isn't really uncommon, is it?

If building and installing from git via `make install` is too much of
a hassle we should probably work on reducing the hassle ;)

Cheers
Michael
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: