Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C96DE40DDE3 for ; Fri, 12 Nov 2010 21:26:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4qW2AZC8ZAXu for ; Fri, 12 Nov 2010 21:26:02 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 1665140DDD3 for ; Fri, 12 Nov 2010 21:26:02 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 661BF19F335A; Sat, 13 Nov 2010 06:26:00 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id tEEg48sMe6di; Sat, 13 Nov 2010 06:25:59 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 2405519F3351; Sat, 13 Nov 2010 06:25:59 +0100 (CET) Received: from steelpick.2x.cz (unknown [213.29.198.144]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 32ACEFA004; Sat, 13 Nov 2010 06:25:57 +0100 (CET) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1PH8cf-0004vd-IV; Sat, 13 Nov 2010 06:25:57 +0100 From: Michal Sojka To: David Bremner , notmuch@notmuchmail.org Subject: Re: Second draft of logging patches In-Reply-To: <877hgln9xg.fsf@rocinante.cs.unb.ca> References: <1286803617-17328-1-git-send-email-david@tethera.net> <1287954066-24512-1-git-send-email-david@tethera.net> <877hgln9xg.fsf@rocinante.cs.unb.ca> User-Agent: Notmuch/0.5-11-g48b5e00 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Sat, 13 Nov 2010 06:25:57 +0100 Message-ID: <87vd41pzfe.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2010 05:26:12 -0000 On Wed, 10 Nov 2010, David Bremner wrote: > On Sun, 24 Oct 2010 18:01:02 -0300, david@tethera.net wrote: > > Here is my second try at logging, taking into account the feedback I > > got from Rob and Michal. There is definitely some tidying to do; in > > particular I know the protoypes in public headers need > > documentation. Also, I should add a configuration option to > > enable configuration by command or something like that. > > 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. I'm not sure about the performance implications, but it > could be interesting because it eliminates the need to have a server > running in order to eliminate write contention for the tag database. > The "queue runner" could be as simple as a cron job, or it could be > something spawned by one of the queue operations; the point would be > that queueing could continue while the snapshot of the queue was run. 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. -Michal