guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: Add an index on derivation_output_details.id


From: Christopher Baines
Subject: branch master updated: Add an index on derivation_output_details.id
Date: Sun, 11 Jul 2021 10:26:54 -0400

This is an automated email from the git hooks/post-receive script.

cbaines pushed a commit to branch master
in repository data-service.

The following commit(s) were added to refs/heads/master by this push:
     new 5cefa25  Add an index on derivation_output_details.id
5cefa25 is described below

commit 5cefa250d8bd604fc33e6b5e6444f32c94ad9eb1
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sun Jul 11 15:25:12 2021 +0100

    Add an index on derivation_output_details.id
    
    Where hash is not null, since this helps with the fixed output package
    derivations query.
---
 sqitch/deploy/package_derivations_not_null_hash_index.sql | 7 +++++++
 sqitch/revert/package_derivations_not_null_hash_index.sql | 7 +++++++
 sqitch/sqitch.plan                                        | 1 +
 sqitch/verify/package_derivations_not_null_hash_index.sql | 7 +++++++
 4 files changed, 22 insertions(+)

diff --git a/sqitch/deploy/package_derivations_not_null_hash_index.sql 
b/sqitch/deploy/package_derivations_not_null_hash_index.sql
new file mode 100644
index 0000000..7862ec8
--- /dev/null
+++ b/sqitch/deploy/package_derivations_not_null_hash_index.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-data-service:package_derivations_not_null_hash_index to pg
+
+BEGIN;
+
+CREATE INDEX derivation_output_details_id_hash_not_null_idx ON 
derivation_output_details (id) WHERE hash IS NOT NULL;
+
+COMMIT;
diff --git a/sqitch/revert/package_derivations_not_null_hash_index.sql 
b/sqitch/revert/package_derivations_not_null_hash_index.sql
new file mode 100644
index 0000000..7b40004
--- /dev/null
+++ b/sqitch/revert/package_derivations_not_null_hash_index.sql
@@ -0,0 +1,7 @@
+-- Revert guix-data-service:package_derivations_not_null_hash_index from pg
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan
index 10a3fe1..44138d6 100644
--- a/sqitch/sqitch.plan
+++ b/sqitch/sqitch.plan
@@ -82,3 +82,4 @@ systems_table 2021-04-22T08:12:10Z Christopher Baines 
<mail@cbaines.net> # Add a
 some_indexes 2021-05-17T17:36:38Z Christopher Baines <mail@cbaines.net> # Add 
some indexes
 package_metadata_location_id_index 2021-05-27T19:51:13Z Canan Talayhan 
<canan.t.talayhan@gmail.com> # Add index for location id
 packages_replacement 2021-04-24T04:52:57Z Christopher Baines 
<mail@cbaines.net> # Add packages.replacement_package_id
+package_derivations_not_null_hash_index 2021-07-11T14:19:32Z Christopher 
Baines <mail@cbaines.net> # Add an index to package_derivations
diff --git a/sqitch/verify/package_derivations_not_null_hash_index.sql 
b/sqitch/verify/package_derivations_not_null_hash_index.sql
new file mode 100644
index 0000000..336d57b
--- /dev/null
+++ b/sqitch/verify/package_derivations_not_null_hash_index.sql
@@ -0,0 +1,7 @@
+-- Verify guix-data-service:package_derivations_not_null_hash_index on pg
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]