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 38D37431FAF for ; Tue, 11 Dec 2012 01:12:58 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.099 X-Spam-Level: X-Spam-Status: No, score=-0.099 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled 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 66k7AJE9ug+Y for ; Tue, 11 Dec 2012 01:12:57 -0800 (PST) Received: from homiemail-a1.g.dreamhost.com (caiajhbdcaib.dreamhost.com [208.97.132.81]) by olra.theworths.org (Postfix) with ESMTP id A8576431FAE for ; Tue, 11 Dec 2012 01:12:57 -0800 (PST) Received: from homiemail-a1.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTP id 0561934806E for ; Tue, 11 Dec 2012 01:12:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :in-reply-to:references:date:message-id:subject:from:to:cc: content-type; s=zx2c4.com; bh=LSQlEp+XI5sVwFwKFskWlSy1e9Y=; b=iL kJa7o1xmSMm3scZSM/1cto0lQlgue6gLYmP1P4PrCkwZ9DGADiYYUz7cCIk5R8a/ 8Jwvk7P4wFbwHH/eJEn2PanLUaxu4u7l4Y2jF9HsPGNqedv1lng5QlqaRoOmRHMt GXhqosTbmoFr3gbe7cxBGfFDRyJJ3cE8R1CusWGEI= Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jason@zx2c4.com) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTPSA id DAFF834806B for ; Tue, 11 Dec 2012 01:12:56 -0800 (PST) Received: by mail-ob0-f181.google.com with SMTP id oi10so3109523obb.26 for ; Tue, 11 Dec 2012 01:12:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.130.99 with SMTP id od3mr8803711obb.61.1355217176369; Tue, 11 Dec 2012 01:12:56 -0800 (PST) Received: by 10.76.33.70 with HTTP; Tue, 11 Dec 2012 01:12:56 -0800 (PST) In-Reply-To: <20121211091215.8048.13433@megatron> References: <20121207092305.4942.42415@megatron> <20121208162055.14777.40147@brick.lan> <20121208174626.23685.31363@brick.lan> <20121210094134.11208.94252@megatron> <20121211091215.8048.13433@megatron> Date: Tue, 11 Dec 2012 10:12:56 +0100 Message-ID: Subject: Re: gmail importer script From: "Jason A. Donenfeld" To: Patrick Totzke Content-Type: multipart/alternative; boundary=14dae93b61346419a504d0901679 Cc: public-notmuch-gxuj+Tv9EO5zyzON3hdc1g@plane.gmane.org, notmuch@notmuchmail.org, Rainer M Krug 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: Tue, 11 Dec 2012 09:12:58 -0000 --14dae93b61346419a504d0901679 Content-Type: text/plain; charset=ISO-8859-1 It seems to work, but i'm still waiting for the first run-through. > > Downloading messages: 457 of 22831| > > This takes ages. I hope it doesn't try to re-download all my messages > everytime. > Nope. It's very smart about not doing that. > > Another thing: > It seems that throughout its run, your script locks the notmuch database. > This is particularly > annoying if you want to read/tag mails while waiting for a long > sync-process. I think you only > really want to lock the index for a short time in the end. > Do you write to the index directly after a msg is downloaded? > I tried to solve this by closing and opening the database each time, but it actually reduced the performance considerably -- even slower than the gmail download. --14dae93b61346419a504d0901679 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It seems to work, but i'm still waiting for the first run-through.
<= div class=3D"gmail_quote">

Downloading messages: 457 of 22831|

This takes ages. I hope it doesn't try to re-download all my messages e= verytime.

Nope. It's very smart abo= ut not doing that.
=A0

Another thing:
It seems that throughout its run, your script locks the notmuch database. T= his is particularly
annoying if you want to read/tag mails while waiting for a long sync-proces= s. I think you only
really want to lock the index for a short time in the end.
Do you write to the index directly after a msg is downloaded?

I tried to solve this by closing and opening the dat= abase each time, but it actually reduced the performance considerably -- ev= en slower than the gmail download.
=A0
--14dae93b61346419a504d0901679--