GNU bug report logs - #77833
Xapian cache/search proof of concept

Previous Next

Package: guix-patches;

Reported by: Noé Lopez <noe <at> xn--no-cja.eu>

Date: Tue, 15 Apr 2025 21:16:03 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Noé Lopez <noe <at> xn--no-cja.eu>
To: arunisaac <at> systemreboot.net, gabrielsantosdesouza <at> disroot.org, 77833 <at> debbugs.gnu.org
Cc: Ludovic Courtès <ludo <at> gnu.org>, Simon Tournier <zimon.toutoune <at> gmail.com>
Subject: [bug#77833] Xapian cache/search proof of concept
Date: Tue, 29 Apr 2025 21:27:49 +0200
[Message part 1 (text/plain, inline)]
Arun Isaac <arunisaac <at> systemreboot.net> writes:

> Hi Noé,
>
> Works beautifully, thanks for hacking on this!
>
> How does the multiple profile support work? Do I have to build the index
> separately for each profile? What happens when I switch back and forth
> between profiles—do I need to rebuild the index each time I switch? And,
> where is the index stored?
>
> Cheers!
> Arun

We take the profile at /var/guix/profiles/per-user/<user>/current-guix/
and build an index for it. Yes. No. In
~/.cache/guix-xsearch/<profile-hash>.

What I originaly wanted to do was a derivation that computes the index
based on the current guix, but I couldn’t quite get it to work. It would
have been best since it would be in the store and benefit from guix gc.

Now that I think about it, this is a bad solution. It might not work
with guix time-machine.

I would like to know what you mean by switching profile, is that guix
pull generations or guix shell guix or something else?

All the best,
Noé
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 45 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.