guix-data-service/sqitch/deploy/derivation_outputs_id_and_derivation_id_idx.sql
Christopher Baines fc5f562731 Add index on derivation_outputs id and derivation_id fields
This might help with doing recursive queries on the derivations graph.
2022-11-12 10:42:04 +00:00

7 lines
192 B
PL/PgSQL

-- Deploy guix-data-service:derivation_outputs_id_and_derivation_id_idx to pg
BEGIN;
CREATE INDEX derivation_outputs_id_and_derivation_id ON derivation_outputs (id, derivation_id);
COMMIT;