Create an index on narinfo_fetch_records

This greatly improves the performance of the derivation-outputs page.
This commit is contained in:
Christopher Baines 2020-03-25 19:11:03 +00:00
parent 8af7130239
commit 0c4e6a2fe4
4 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,8 @@
-- Deploy guix-data-service:create_narinfo_fetch_records_index to pg
BEGIN;
CREATE INDEX narinfo_fetch_records_narinfo_signature_data_id ON
narinfo_fetch_records (narinfo_signature_data_id);
COMMIT;