Create an index on the hash component of the store path
For derivation_source_files.
This commit is contained in:
parent
7e7cc1c8f1
commit
82b797ee98
4 changed files with 23 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
-- Revert guix-data-service:derivation_source_files_store_path_hash_index from pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
DROP INDEX derivation_source_files_hash;
|
||||
|
||||
COMMIT;
|
||||
|
|
@ -40,3 +40,4 @@ derivation_output_sets 2019-12-05T23:19:05Z Christopher Baines <mail@cbaines.net
|
|||
builds_add_derivation_output_details_set_id 2019-12-07T18:25:38Z Christopher Baines <mail@cbaines.net> # Add a derivation_output_details_set_id column to builds
|
||||
derivations_hash_index 2019-12-24T22:54:19Z Christopher Baines <mail@cbaines.net> # Add index on derivations for the hash component of the filename
|
||||
add_derivation_source_file_nars 2019-12-28T20:37:06Z Christopher Baines <mail@cbaines.net> # Add table for derivation source file nars
|
||||
derivation_source_files_store_path_hash_index 2019-12-29T17:53:08Z Christopher Baines <mail@cbaines.net> # Add index on the hash part of the derivation source files store path
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
-- Verify guix-data-service:derivation_source_files_store_path_hash_index on pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
-- XXX Add verifications here.
|
||||
|
||||
ROLLBACK;
|
||||
Loading…
Add table
Add a link
Reference in a new issue