Where hash is not null, since this helps with the fixed output package derivations query.
7 lines
210 B
PL/PgSQL
7 lines
210 B
PL/PgSQL
-- 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;
|