Add index for package_metadata
This index speeds up inserting new entries to the package_metadata table. Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
parent
854f2cbba9
commit
9c1b989d20
4 changed files with 22 additions and 0 deletions
7
sqitch/deploy/package_metadata_location_id_index.sql
Normal file
7
sqitch/deploy/package_metadata_location_id_index.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
-- Deploy guix-data-service:package_metadata_location_id_index to pg
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
CREATE INDEX package_metadata_location_id ON package_metadata (location_id);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
7
sqitch/revert/package_metadata_location_id_index.sql
Normal file
7
sqitch/revert/package_metadata_location_id_index.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
-- Revert guix-data-service:package_metadata_location_id_index from pg
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
-- XXX Add DDLs here.
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
@ -80,3 +80,4 @@ increase_derivation_inputs_statistics_targets 2020-12-27T10:34:58Z Christopher B
|
||||||
remove_guix_revisions_store_path 2021-02-02T20:06:18Z Christopher Baines <mail@cbaines.net> # Drop guix_revisions.store_path
|
remove_guix_revisions_store_path 2021-02-02T20:06:18Z Christopher Baines <mail@cbaines.net> # Drop guix_revisions.store_path
|
||||||
systems_table 2021-04-22T08:12:10Z Christopher Baines <mail@cbaines.net> # Add a systems table
|
systems_table 2021-04-22T08:12:10Z Christopher Baines <mail@cbaines.net> # Add a systems table
|
||||||
some_indexes 2021-05-17T17:36:38Z Christopher Baines <mail@cbaines.net> # Add some indexes
|
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
|
||||||
|
|
|
||||||
7
sqitch/verify/package_metadata_location_id_index.sql
Normal file
7
sqitch/verify/package_metadata_location_id_index.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
-- Verify guix-data-service:package_metadata_location_id_index on pg
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
-- XXX Add verifications here.
|
||||||
|
|
||||||
|
ROLLBACK;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue