Add index on derivation_outputs id and derivation_id fields
This might help with doing recursive queries on the derivations graph.
This commit is contained in:
parent
fb9d99a076
commit
fc5f562731
4 changed files with 22 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
-- 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue