From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OGbKI0MFkF8FaQAA0tVLHw (envelope-from ) for ; Wed, 21 Oct 2020 09:54:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id gPvcH0MFkF+5NwAA1q6Kng (envelope-from ) for ; Wed, 21 Oct 2020 09:54:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0CBB59400C7 for ; Wed, 21 Oct 2020 09:54:11 +0000 (UTC) Received: from localhost ([::1]:49734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVAos-0002J7-1h for larch@yhetil.org; Wed, 21 Oct 2020 05:54:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVAok-0002J0-Bn for guix-devel@gnu.org; Wed, 21 Oct 2020 05:54:02 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45320) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVAoj-0005Fi-GO; Wed, 21 Oct 2020 05:54:01 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43118 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kVAoi-0006Dn-HZ; Wed, 21 Oct 2020 05:54:00 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Pierre Neidhardt Subject: Re: File search progress: database review and question on triggers References: <87sgcuh8rb.fsf@ambrevar.xyz> <86imd4e7cr.fsf@gmail.com> <87eenspcf8.fsf@ambrevar.xyz> <865z94dz83.fsf@gmail.com> <87zh6gns4l.fsf@ambrevar.xyz> <87zh5c7hx6.fsf@ambrevar.xyz> <87k0w4zw8q.fsf@gnu.org> <875z7oijxu.fsf@ambrevar.xyz> <87eem3u4n8.fsf@gnu.org> <875z7f6663.fsf@ambrevar.xyz> <87blh6jl32.fsf@gnu.org> <878scaz0te.fsf@ambrevar.xyz> <87y2k9g6ta.fsf@gnu.org> <87eem1xn4i.fsf@ambrevar.xyz> <87k0vq79ai.fsf@gnu.org> <874kmttdrl.fsf@ambrevar.xyz> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 30 =?utf-8?Q?Vend=C3=A9miaire?= an 229 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Wed, 21 Oct 2020 11:53:58 +0200 In-Reply-To: <874kmttdrl.fsf@ambrevar.xyz> (Pierre Neidhardt's message of "Sat, 17 Oct 2020 11:14:54 +0200") Message-ID: <87zh4f7vm1.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Mathieu Othacehe Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: CIonjhVnSsJ0 Pierre Neidhardt skribis: > Ludovic Court=C3=A8s writes: > >> It first tries =E2=80=98query-path-info=E2=80=99, which succeeds if the = store item is >> available and contains info about its size, references, and so on. >> >> When =E2=80=98query-path-info=E2=80=99 fails, it falls back to >> =E2=80=98query-substitutable-path-info=E2=80=99, which allows it to obta= in the same >> information for substitutes. Thus, it doesn=E2=80=99t need to have the = store >> item available locally. > > So we could do the same with `guix filesearch`: > > - First try the entry in the database. > > - If not there, try query-path-info and if it succeeds, populate the > database. > > - If query-path-info does not succeed, try our new > query-substitutable-filesearch-info. > > That would work, no? Sure, but it=E2=80=99s a big change on the daemon size (you need this new R= PC, a new database, a way to update this database, presumably orthogonal to substitutes (?), etc.) A client-side approach (not involving guix-daemon) would be more readily usable, though some of the questions above remain open. Thanks, Ludo=E2=80=99.