From 3b5950024b06ce0d01ece4d15fa4f8cec271b034 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Fri, 17 Jun 2022 12:51:10 +0100 Subject: Add an index on package_derivations_by_guix_revision_range This helps render the package version range related pages. --- sqitch/deploy/package_range_index.sql | 7 +++++++ sqitch/revert/package_range_index.sql | 7 +++++++ sqitch/sqitch.plan | 1 + sqitch/verify/package_range_index.sql | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 sqitch/deploy/package_range_index.sql create mode 100644 sqitch/revert/package_range_index.sql create mode 100644 sqitch/verify/package_range_index.sql (limited to 'sqitch') diff --git a/sqitch/deploy/package_range_index.sql b/sqitch/deploy/package_range_index.sql new file mode 100644 index 0000000..cb94ba4 --- /dev/null +++ b/sqitch/deploy/package_range_index.sql @@ -0,0 +1,7 @@ +-- Deploy guix-data-service:package_range_index to pg + +BEGIN; + +CREATE INDEX range_package_name_idx ON package_derivations_by_guix_revision_range (package_name); + +COMMIT; diff --git a/sqitch/revert/package_range_index.sql b/sqitch/revert/package_range_index.sql new file mode 100644 index 0000000..bdbb199 --- /dev/null +++ b/sqitch/revert/package_range_index.sql @@ -0,0 +1,7 @@ +-- Revert guix-data-service:package_range_index from pg + +BEGIN; + +-- XXX Add DDLs here. + +COMMIT; diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan index 1f329a5..f71fcbe 100644 --- a/sqitch/sqitch.plan +++ b/sqitch/sqitch.plan @@ -85,3 +85,4 @@ packages_replacement 2021-04-24T04:52:57Z Christopher Baines package_derivations_not_null_hash_index 2021-07-11T14:19:32Z Christopher Baines # Add an index to package_derivations git_branch_id 2022-05-23T18:11:14Z Chris # Add git_branch.id partition_package_derivations_by_guix_revision_range 2022-05-23T18:20:37Z Chris # Partition package_derivations_by_guix_revision_range +package_range_index 2022-06-17T10:39:31Z Chris # Add index on package_derivations_by_guix_revision_range.package_name diff --git a/sqitch/verify/package_range_index.sql b/sqitch/verify/package_range_index.sql new file mode 100644 index 0000000..d18eaf0 --- /dev/null +++ b/sqitch/verify/package_range_index.sql @@ -0,0 +1,7 @@ +-- Verify guix-data-service:package_range_index on pg + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK; -- cgit v1.2.3