Add an index on derivation_output_details.id
Where hash is not null, since this helps with the fixed output package derivations query.
This commit is contained in:
parent
d1a2a7125c
commit
5cefa250d8
4 changed files with 22 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
-- Deploy guix-data-service:package_derivations_not_null_hash_index to pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
CREATE INDEX derivation_output_details_id_hash_not_null_idx ON derivation_output_details (id) WHERE hash IS NOT NULL;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Add table
Add a link
Reference in a new issue