Re: Second draft of logging patches
authorDavid Bremner <david@tethera.net>
Sat, 13 Nov 2010 12:11:44 +0000 (08:11 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:29 +0000 (09:37 -0800)
10/057fe87d0fc670dc99553658a4e9be0bdea240 [new file with mode: 0644]

diff --git a/10/057fe87d0fc670dc99553658a4e9be0bdea240 b/10/057fe87d0fc670dc99553658a4e9be0bdea240
new file mode 100644 (file)
index 0000000..0927c33
--- /dev/null
@@ -0,0 +1,80 @@
+Return-Path: <bremner@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 4E95C40DDF3\r
+       for <notmuch@notmuchmail.org>; Sat, 13 Nov 2010 04:11:50 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.6\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id UFtyoSsXYhyv for <notmuch@notmuchmail.org>;\r
+       Sat, 13 Nov 2010 04:11:39 -0800 (PST)\r
+Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 4864E40DDE8\r
+       for <notmuch@notmuchmail.org>; Sat, 13 Nov 2010 04:11:39 -0800 (PST)\r
+Received: from zancas.localnet\r
+       (fctnnbsc30w-142167176217.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
+       [142.167.176.217]) (authenticated bits=0)\r
+       by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id oADCBadd017849\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
+       Sat, 13 Nov 2010 08:11:36 -0400\r
+Received: from bremner by zancas.localnet with local (Exim 4.72)\r
+       (envelope-from <bremner@tethera.net>)\r
+       id 1PHExM-0006hw-EV; Sat, 13 Nov 2010 08:11:44 -0400\r
+From: David Bremner <david@tethera.net>\r
+To: Michal Sojka <sojkam1@fel.cvut.cz>, notmuch@notmuchmail.org\r
+Subject: Re: Second draft of logging patches\r
+In-Reply-To: <87vd41pzfe.fsf@steelpick.2x.cz>\r
+References: <1286803617-17328-1-git-send-email-david@tethera.net>\r
+       <1287954066-24512-1-git-send-email-david@tethera.net>\r
+       <877hgln9xg.fsf@rocinante.cs.unb.ca>\r
+       <87vd41pzfe.fsf@steelpick.2x.cz>\r
+User-Agent: Notmuch/0.4 (http://notmuchmail.org) Emacs/23.2.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sat, 13 Nov 2010 08:11:44 -0400\r
+Message-ID: <87aald1kzj.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 13 Nov 2010 12:11:50 -0000\r
+\r
+On Sat, 13 Nov 2010 06:25:57 +0100, Michal Sojka <sojkam1@fel.cvut.cz> wrote:\r
+> On Wed, 10 Nov 2010, David Bremner wrote:\r
+> > I had a thought of a possibly interesting application of the (yet to be\r
+> > written) log playback code. It could be use to implement a simple\r
+> > queuing system where commands are only logged but not actually run on\r
+> > the database. \r
+\r
+> Hi, I think this could be very interesting and that it could make the\r
+> tagging operation asynchronous and thus faster as was suggested by\r
+> Sebastian in id:"87k4l5whwe.fsf@SSpaeth.de".\r
+> \r
+> In this case, however, the queuing should happen in the client, not in\r
+> the library.\r
+\r
+Agreed. The current implementation of automagically logging things in\r
+the library would be undesirable here. That specific thing shouldn't be\r
+too hard to change. Also worth thinking about is (optionally) using the\r
+Maildir to log most tag changes; Maildirs are designed (imperfectly, but\r
+still) to support simulataneous writes.  The database could then catch\r
+up by reading the Maildir.\r
+\r
+d\r