[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: File search progress: database review and question on triggers
From: |
Ludovic Courtès |
Subject: |
Re: File search progress: database review and question on triggers |
Date: |
Wed, 21 Oct 2020 11:53:58 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Pierre Neidhardt <mail@ambrevar.xyz> skribis:
> Ludovic Courtès <ludo@gnu.org> writes:
>
>> It first tries ‘query-path-info’, which succeeds if the store item is
>> available and contains info about its size, references, and so on.
>>
>> When ‘query-path-info’ fails, it falls back to
>> ‘query-substitutable-path-info’, which allows it to obtain the same
>> information for substitutes. Thus, it doesn’t 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’s a big change on the daemon size (you need this new RPC, 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’.
- Re: File search progress: database review and question on triggers, (continued)
- Re: File search progress: database review and question on triggers, Ludovic Courtès, 2020/10/12
- Re: File search progress: database review and question on triggers, Pierre Neidhardt, 2020/10/12
- Re: File search progress: database review and question on triggers, Ludovic Courtès, 2020/10/13
- Re: File search progress: database review and question on triggers, Pierre Neidhardt, 2020/10/13
- Re: File search progress: database review and question on triggers, Ludovic Courtès, 2020/10/13
- Re: File search progress: database review and question on triggers, Pierre Neidhardt, 2020/10/14
- Re: File search progress: database review and question on triggers, Ludovic Courtès, 2020/10/16
- Re: File search progress: database review and question on triggers, Pierre Neidhardt, 2020/10/17
- Re: File search progress: database review and question on triggers, Pierre Neidhardt, 2020/10/17
- Re: File search progress: database review and question on triggers,
Ludovic Courtès <=
- Re: File search progress: database review and question on triggers, Pierre Neidhardt, 2020/10/21
- Re: File search progress: database review and question on triggers, zimoun, 2020/10/12