unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: Michal Sojka <sojkam1@fel.cvut.cz>, notmuch@notmuchmail.org
Subject: Re: Second draft of logging patches
Date: Sat, 13 Nov 2010 08:11:44 -0400	[thread overview]
Message-ID: <87aald1kzj.fsf@zancas.localnet> (raw)
In-Reply-To: <87vd41pzfe.fsf@steelpick.2x.cz>

On Sat, 13 Nov 2010 06:25:57 +0100, Michal Sojka <sojkam1@fel.cvut.cz> wrote:
> On Wed, 10 Nov 2010, David Bremner wrote:
> > I had a thought of a possibly interesting application of the (yet to be
> > written) log playback code. It could be use to implement a simple
> > queuing system where commands are only logged but not actually run on
> > the database. 

> Hi, I think this could be very interesting and that it could make the
> tagging operation asynchronous and thus faster as was suggested by
> Sebastian in id:"87k4l5whwe.fsf@SSpaeth.de".
> 
> In this case, however, the queuing should happen in the client, not in
> the library.

Agreed. The current implementation of automagically logging things in
the library would be undesirable here. That specific thing shouldn't be
too hard to change. Also worth thinking about is (optionally) using the
Maildir to log most tag changes; Maildirs are designed (imperfectly, but
still) to support simulataneous writes.  The database could then catch
up by reading the Maildir.

d

  reply	other threads:[~2010-11-13 12:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-11 13:26 First draft of logging functionality david
2010-10-11 13:26 ` [PATCH 1/3] Initial implementation of low level logging routines david
2010-10-11 13:26 ` [PATCH 2/3] notmuch-log.c: Add a function to log a pair of strings with a timestamp david
2010-10-11 13:26 ` [PATCH 3/3] notmuch-tag.c: Add tag logging david
2010-10-12  9:06 ` First draft of logging functionality Michal Sojka
2010-10-12 11:21   ` David Bremner
2010-10-12 11:38     ` Michal Sojka
2010-10-12 13:16       ` David Bremner
2010-10-12 14:32 ` Rob Browning
2010-10-24 21:01 ` Second draft of logging patches david
2010-11-10  3:18   ` David Bremner
2010-11-13  5:25     ` Michal Sojka
2010-11-13 12:11       ` David Bremner [this message]
2010-10-24 21:01 ` [PATCH 1/4] Initial implementation of low level logging routines david
2010-10-24 21:01 ` [PATCH 2/4] Add log component to database struct david
2010-10-24 21:01 ` [PATCH 3/4] Add logging to low level message handling routines david
2010-10-24 21:01 ` [PATCH 4/4] Enable logging in notmuch-tag.c david

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87aald1kzj.fsf@zancas.localnet \
    --to=david@tethera.net \
    --cc=notmuch@notmuchmail.org \
    --cc=sojkam1@fel.cvut.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).