aboutsummaryrefslogtreecommitdiff
path: root/sqitch/deploy
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-03-25 19:11:03 +0000
committerChristopher Baines <mail@cbaines.net>2020-03-25 19:11:03 +0000
commit0c4e6a2fe49d13a65f836a2b8a5dade720aa7e6b (patch)
treebcab245afc982ce088771c2722c5aee1295ca615 /sqitch/deploy
parent8af7130239877bc8c24dd0c44ccd52d15d1eb1d0 (diff)
downloaddata-service-0c4e6a2fe49d13a65f836a2b8a5dade720aa7e6b.tar
data-service-0c4e6a2fe49d13a65f836a2b8a5dade720aa7e6b.tar.gz
Create an index on narinfo_fetch_records
This greatly improves the performance of the derivation-outputs page.
Diffstat (limited to 'sqitch/deploy')
-rw-r--r--sqitch/deploy/create_narinfo_fetch_records_index.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/sqitch/deploy/create_narinfo_fetch_records_index.sql b/sqitch/deploy/create_narinfo_fetch_records_index.sql
new file mode 100644
index 0000000..c3547d5
--- /dev/null
+++ b/sqitch/deploy/create_narinfo_fetch_records_index.sql
@@ -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;