Create an index on the hash component of the store path

For derivation_source_files.
This commit is contained in:
Christopher Baines 2019-12-29 17:55:04 +00:00
parent 7e7cc1c8f1
commit 82b797ee98
4 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,8 @@
-- Deploy guix-data-service:derivation_source_files_store_path_hash_index to pg
BEGIN;
CREATE INDEX derivation_source_files_hash
ON derivation_source_files (substring(store_path from 12 for 32));
COMMIT;