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.
7 lines
159 B
PL/PgSQL
7 lines
159 B
PL/PgSQL
-- Deploy guix-data-service:derivations_hash_index to pg
|
|
|
|
BEGIN;
|
|
|
|
CREATE INDEX derivations_hash ON derivations (substring(file_name from 12 for 32));
|
|
|
|
COMMIT;
|