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:
Christopher Baines 2019-12-26 09:28:20 +00:00
parent a8d58e0541
commit ff01144e87
4 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,7 @@
-- Revert guix-data-service:derivations_hash_index from pg
BEGIN;
DROP INDEX derivations_hash;
COMMIT;