From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AIvMKi8sIF9vCgAA0tVLHw (envelope-from ) for ; Tue, 28 Jul 2020 13:46:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QCqmJi8sIF8nUAAAB5/wlQ (envelope-from ) for ; Tue, 28 Jul 2020 13:46:23 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 392189404CF for ; Tue, 28 Jul 2020 13:46:22 +0000 (UTC) Received: from [144.217.243.247] (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B3B741FA17; Tue, 28 Jul 2020 09:46:16 -0400 (EDT) Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by mail.notmuchmail.org (Postfix) with ESMTPS id 60D2C1F70D for ; Tue, 28 Jul 2020 09:46:14 -0400 (EDT) Received: by mail-pl1-x62e.google.com with SMTP id m16so9912903pls.5 for ; Tue, 28 Jul 2020 06:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=teamwilner-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=tPou671JhC3hcsdLhAJKAGlSv0AlwGym00czyb9BktU=; b=zsDp7CyBPxOi8Sbw2FHTd/P7Q/ifZ4YKN7VaKb+I5BryduzuRYYrSjZzYMpuIEvYB6 iTH8rpYYPG6YwoGnBs++IpFqgPxwJktupnOEDZxaKU4DJhFwm9L0y/n3z0VVLhD77MlU s2HK/iiuU2o8HRzAVDCeVI2jWcWPXArr2+ZebVPfpG0sDKksSwlPVDF5V0twcof1CA/X e2qKRboOFOxh7devbStUUkGQw5JL3cy4hihHoI8L9oMAPFeARkZtCjQD9VNX/duQ+N4o Mh/Vvtmj1OUowXJdKSZbhvUL0djSYC/HcEASln8bqTJvCtE4suwIBS653PYfFWLjMuUp ioWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:cc:subject:in-reply-to:references :date:message-id:mime-version; bh=tPou671JhC3hcsdLhAJKAGlSv0AlwGym00czyb9BktU=; b=NlZ2KdDLh3CCWin/XJM8jvrTT0H7rVd/PGoRgCge8RtNRLC9HPLENAf96j9US3BLXC /fQdnvNIgtXGqLcxfXIs+NOpPybF3VIDz4oqh6xCUQIPLaHhytZr8UNmmx8/5MZ6prkS gTJ0Qlk45R94E9aBHApjsHq4PjYSMRaEr7q4Qud08w1/jaRiry0WZM4q7m3d+bOuG2LT taiVW//aV2C19C6+bnM7V07uuCbvL3nvQNgOYoRgQ/hz65hucM8hYFiQXTNms39Ve916 TE1XjuA+7sAG/K/7K88UW2GyErdDvLWWg3FbbiYknwIN3f0vblE+yj6zfODObZg+MFX1 yD/A== X-Gm-Message-State: AOAM5333YsbJXxZwpGG+co65K9x8xrBAjbIA4Z6GjFIGh2ZrQFA7bOeB qqvq9IwViOihyjBp8jlWZzQeAQ== X-Google-Smtp-Source: ABdhPJyrr0i8RCMDyjPQHMLrnIzD5ODz79xUAFILVA38Q3dHPO95iS4MvYPmYnfvUkjbib/vfmzFRg== X-Received: by 2002:a17:902:c40d:: with SMTP id k13mr5132883plk.220.1595943966391; Tue, 28 Jul 2020 06:46:06 -0700 (PDT) Received: from localhost ([2601:647:4d00:1df9:90b8:a6d1:c140:5ea4]) by smtp.gmail.com with ESMTPSA id w123sm18417025pfd.2.2020.07.28.06.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 06:46:05 -0700 (PDT) From: Jonathan Wilner To: David Bremner , notmuch@notmuchmail.org Cc: David Edmondson , Mark Walters Cc: Subject: Re: Looking for help re: inbox/thread/tree slowdown; misconfiguration? In-Reply-To: <871rkvsxs0.fsf@tethera.net> References: <87blk02z7d.fsf@tethera.net> <871rkvsxs0.fsf@tethera.net> Date: Tue, 28 Jul 2020 06:46:04 -0700 Message-ID: MIME-Version: 1.0 Message-ID-Hash: Y6NFOLJJAZV2MGW5K5ZRO4QWRUSO6GBX X-Message-ID-Hash: Y6NFOLJJAZV2MGW5K5ZRO4QWRUSO6GBX X-MailFrom: jrw@greenbriardrive.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: 7bit Content-Type: text/plain; format="flowed"; charset="us-ascii" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=teamwilner-com.20150623.gappssmtp.com header.s=20150623 header.b=zsDp7CyB; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 3.23 X-TUID: ODgduOTw1UuC Thanks, David! I'm giving this a try now. So far, so good! Best, Jonathan David Bremner writes: > David Bremner writes: > >> jonathan@teamwilner.com writes: >> >>> I've got about 52K items with the tag "inbox". Should be "notmuch" >>> right? :-) Here's the problem - if I want to view that in tree view, >>> it can take multiple minutes for notmuch to return a result. >> >> In general there should be some results right away, with the rest of the >> buffer being filled asynchronously. Unfortunately notmuch-emacs only >> handles the one asynchronous query, so if there is already a long >> running query, you will indeed have to wait for the whole tree/list of >> headers to be read into emacs. >> > > I think I see what is probably going on for you. You are probably first > opening the query with notmuch-search-mode, then switching to > notmuch-tree mode, This leads to the original query running in the > background, blocking your second (tree-mode) query from running. I > suggest trying M-x notmuch-tree directly (say in a fresh Emacs instance) > and see if it has the same delay. If it works better, you can set the > default mode to open a saved search by customizing > notmuch-saved-searches. > > It's been a while since I looked at the async code, maybe David E or > Mark have some ideas about how hard it would be to improve the current > behaviour of one async query blocking all others. > > d