aboutsummaryrefslogtreecommitdiff
path: root/sqitch/deploy
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-03-05 10:21:14 +0000
committerChristopher Baines <mail@cbaines.net>2023-03-05 10:21:14 +0000
commita6f239fb8a51fc9bd1bdca1d2a0e99f0a6bf7f3c (patch)
tree4344d5b49a9a2759a2de563e8b0ec026b6577ff4 /sqitch/deploy
parent7e7cd3f5a95341179e0db0f7c8c825f6131c4bde (diff)
downloaddata-service-a6f239fb8a51fc9bd1bdca1d2a0e99f0a6bf7f3c.tar
data-service-a6f239fb8a51fc9bd1bdca1d2a0e99f0a6bf7f3c.tar.gz
Add an extra index on blocked_builds
I think this might help with queries that don't use the build_server_id.
Diffstat (limited to 'sqitch/deploy')
-rw-r--r--sqitch/deploy/blocked_builds_blocked_builds_blocked_derivation_output_details_set_id_2.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/sqitch/deploy/blocked_builds_blocked_builds_blocked_derivation_output_details_set_id_2.sql b/sqitch/deploy/blocked_builds_blocked_builds_blocked_derivation_output_details_set_id_2.sql
new file mode 100644
index 0000000..9ad850f
--- /dev/null
+++ b/sqitch/deploy/blocked_builds_blocked_builds_blocked_derivation_output_details_set_id_2.sql
@@ -0,0 +1,8 @@
+-- Deploy guix-data-service:blocked_builds_blocked_builds_blocked_derivation_output_details_set_id_2 to pg
+
+BEGIN;
+
+CREATE INDEX blocked_builds_blocked_derivation_output_details_set_id_2
+ ON blocked_builds (blocked_derivation_output_details_set_id);
+
+COMMIT;