aboutsummaryrefslogtreecommitdiff
path: root/sqitch/deploy
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-12-04 22:03:52 +0100
committerChristopher Baines <mail@cbaines.net>2019-12-04 22:03:52 +0100
commitf0b16b5a7c6503c6df855ed9d36cfd1bb39cab8c (patch)
treefe21e9fcde3a834ee953d3db43bba53f024768ce /sqitch/deploy
parentbeab7f07bc07e44cbdbeadfc6a8238cfcef973fd (diff)
downloaddata-service-f0b16b5a7c6503c6df855ed9d36cfd1bb39cab8c.tar
data-service-f0b16b5a7c6503c6df855ed9d36cfd1bb39cab8c.tar.gz
Add an index on the derivation_file_name field in the builds table
As this helps when finding builds relating to specific derivations.
Diffstat (limited to 'sqitch/deploy')
-rw-r--r--sqitch/deploy/add_index_on_builds_derivation_file_name.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/sqitch/deploy/add_index_on_builds_derivation_file_name.sql b/sqitch/deploy/add_index_on_builds_derivation_file_name.sql
new file mode 100644
index 0000000..be76be8
--- /dev/null
+++ b/sqitch/deploy/add_index_on_builds_derivation_file_name.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-data-service:add_index_on_builds_derivation_file_name to pg
+
+BEGIN;
+
+CREATE INDEX builds_derivation_file_name ON builds(derivation_file_name);
+
+COMMIT;