From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IH8qCdz9oGBq8QAAgWs5BA (envelope-from ) for ; Sun, 16 May 2021 13:11:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2PvHBNz9oGB4SgAAB5/wlQ (envelope-from ) for ; Sun, 16 May 2021 11:11:24 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8DD9913341 for ; Sun, 16 May 2021 13:11:23 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id F332C271D7; Sun, 16 May 2021 07:11:17 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0BB96271D0 for ; Sun, 16 May 2021 07:11:14 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 2FA9460018; Sun, 16 May 2021 07:11:13 -0400 (EDT) Received: (nullmailer pid 3199422 invoked by uid 1000); Sun, 16 May 2021 11:11:11 -0000 From: David Bremner To: Michael J Gruber , notmuch@notmuchmail.org Subject: Re: [PATCH] lib/notmuch_database_reopen: reload some database metada In-Reply-To: <162082622650.6226.11500786764764467710.git@grubix.eu> References: <162075216869.247978.11973039285204032566.git@grubix.eu> <20210511174209.779891-1-david@tethera.net> <87k0o5go2k.fsf@tethera.net> <87zgx0f94q.fsf@tethera.net> <162082622650.6226.11500786764764467710.git@grubix.eu> Date: Sun, 16 May 2021 08:11:11 -0300 Message-ID: <87pmxraq7k.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: OB6S7CIJ5M3ZVBE66HMJRUJNU2CUNNYW X-Message-ID-Hash: OB6S7CIJ5M3ZVBE66HMJRUJNU2CUNNYW X-MailFrom: david@tethera.net 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621163483; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=LSMguk1fw3k1c0jIZK9NO1LqUSGDzl+uus/jX7VhJQU=; b=flsluYFaoZ/HHec8dUcu/DBigUVtTJq780sO8sm5Du5MtoH+lU5kE+oqR+DNKaBLJQAX3F mvrbMxQMKgKYMyluXfDHgZLdoLJgj4DLu3uuCahenJcOk+nTFviMWU06A0MglMtIfZNZWr KzapT/Bcw0uc1Gw9lyTRO4QIShYq0T9zf5MHRdjVDGNRXpPiKhCyC21eN4/ijPslSJqDoq 47pjL/S2aFFukK/6DjzA1zTc4PkjJlo5Iz3464rlyHB4GjJN1/nta5b7v+molmqxZ6ASiN OdIU42q87nD3dkT2y9ZHGz8FiRJukXH4lav2Lmu36dgNzpfKRinf+d/JV985Nw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621163483; a=rsa-sha256; cv=none; b=bsL4izDHjxAZXKCPGQq2UQk0Z2eB6d9JVI7vfnjNer5QoRDrOFx4BiVz+9yCwU8rnPSLJe 5yIEUthvCsDEMALGQQwzGZbUJXrTENZJCjaksgNG2wedkE39DPw62MeQ0WoIucvh1h3nhF 3qZVmeUtz+As5U8XzD24KlKkiOm3atF98VevYCV/49AS7+dwRpLzQBthf4Ag6YpoE7YBtU wsL1Ix2Taq++tX/fMDo51l7at7HNVrlhB9Q3T1WUYyXQa+7BLrjEsTYR6C2XXUFCVQscfJ 84FLGbQIoGFmAg29RdukfDl+ZDyVz9TgZ0OROogx7m67BaNwvwUf5YfuOkwaXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.57 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 8DD9913341 X-Spam-Score: -0.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: DV330u6GRG5P Michael J Gruber writes: > Out of curiosity: > > What does reopening gain compared to a full close/open cycle? > > Michael It's a fair question. Reopen does not require the extra arguments for configuration that notmuch_database_open_with_config takes, so it can be used in places where those arguments are not available. In the read-only => read-only case there is also a performance advantage, but that might not be relevant anymore now that we are doing several database reads. d