From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:39819) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1c1o-00023x-DC for guix-patches@gnu.org; Tue, 11 Feb 2020 15:21:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1c1n-0004bh-CX for guix-patches@gnu.org; Tue, 11 Feb 2020 15:21:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51650) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1c1n-0004a1-83 for guix-patches@gnu.org; Tue, 11 Feb 2020 15:21:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j1c1m-0005du-3V for guix-patches@gnu.org; Tue, 11 Feb 2020 15:21:02 -0500 Subject: [bug#39258] Faster guix search using an sqlite cache Resent-Message-ID: MIME-Version: 1.0 References: <8736bhytn9.fsf@gnu.org> <87sgjhx92g.fsf@gnu.org> In-Reply-To: From: zimoun Date: Tue, 11 Feb 2020 21:20:37 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Arun Isaac Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 39258@debbugs.gnu.org Hi Arun, On Tue, 11 Feb 2020 at 20:07, Arun Isaac wrote: > > Arun started the discussion on guix-devel with the idea of an inverted > > index, and I thought this would become a second index (possibly > > implemented using SQLite). Perhaps I misunderstood the discussion all > > along though, let me know! :-) > > No, you didn't misunderstand. That's where it began. But, while > implementing it, I thought I might as well replace the existing cache. An inverted index backed by Guile as you did on guix-devel or backed by SQLite seems a good improvement for "guix search". > Also, I've started working on guile-xapian bindings. With that, it seems > simpler to keep the current package cache and add a xapian index only to > speed up package search. Xapian would be cool! And an SQLite based index seems easier to index locally the packages and their history. The Guix Data Service is already doing such thing but AFAIK using PostgreSQL and some magic. :-) http://data.guix.gnu.org/repository/1/branch/master/package/git All the best, simon