From 4ecd20b973dd8c38ba9dc139572e2f4b5c9f7e0b Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 7 Sep 2024 18:45:26 +0100 Subject: Add an index on builds.build_server_build_id As this is used when rendering builds. --- sqitch/deploy/build_server_build_id_index.sql | 7 +++++++ sqitch/revert/build_server_build_id_index.sql | 7 +++++++ sqitch/sqitch.plan | 1 + sqitch/verify/build_server_build_id_index.sql | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 sqitch/deploy/build_server_build_id_index.sql create mode 100644 sqitch/revert/build_server_build_id_index.sql create mode 100644 sqitch/verify/build_server_build_id_index.sql (limited to 'sqitch') diff --git a/sqitch/deploy/build_server_build_id_index.sql b/sqitch/deploy/build_server_build_id_index.sql new file mode 100644 index 0000000..7bd32c6 --- /dev/null +++ b/sqitch/deploy/build_server_build_id_index.sql @@ -0,0 +1,7 @@ +-- Deploy guix-data-service:build_server_build_id_index to pg + +BEGIN; + +CREATE INDEX builds_build_server_build_id ON builds (build_server_build_id); + +COMMIT; diff --git a/sqitch/revert/build_server_build_id_index.sql b/sqitch/revert/build_server_build_id_index.sql new file mode 100644 index 0000000..2d30c11 --- /dev/null +++ b/sqitch/revert/build_server_build_id_index.sql @@ -0,0 +1,7 @@ +-- Revert guix-data-service:build_server_build_id_index from pg + +BEGIN; + +-- XXX Add DDLs here. + +COMMIT; diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan index 14232e3..33d9b04 100644 --- a/sqitch/sqitch.plan +++ b/sqitch/sqitch.plan @@ -98,3 +98,4 @@ cascade_nar_foreign_keys 2023-08-01T09:42:33Z Chris # Make it easi nar_indexes 2023-08-01T11:37:35Z Chris # Add nar related indexes git_repositories_poll_interval 2023-10-08T20:36:09Z Chris # Add git_repositories.poll_interval git_repositories_job_priority 2024-03-07T09:39:27Z Chris # Add git_repositories.job_priority +build_server_build_id_index 2024-09-07T17:42:28Z Chris # Add index on builds.build_server_build_id diff --git a/sqitch/verify/build_server_build_id_index.sql b/sqitch/verify/build_server_build_id_index.sql new file mode 100644 index 0000000..28eceb2 --- /dev/null +++ b/sqitch/verify/build_server_build_id_index.sql @@ -0,0 +1,7 @@ +-- Verify guix-data-service:build_server_build_id_index on pg + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK; -- cgit v1.2.3