Create an index for the hash component of derivation filenames
This is to aid rendering of narinfo files. They're requested with the path /HASH.narinfo, so to quickly find the relevant derivation, this index can be used.
This commit is contained in:
parent
a8d58e0541
commit
ff01144e87
4 changed files with 22 additions and 0 deletions
7
sqitch/deploy/derivations_hash_index.sql
Normal file
7
sqitch/deploy/derivations_hash_index.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- Deploy guix-data-service:derivations_hash_index to pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
CREATE INDEX derivations_hash ON derivations (substring(file_name from 12 for 32));
|
||||
|
||||
COMMIT;
|
||||
Loading…
Add table
Add a link
Reference in a new issue