Add some database indexes
This commit is contained in:
parent
00bfa5336e
commit
0e97c55c0c
4 changed files with 25 additions and 0 deletions
10
sqitch/deploy/add_some_database_indexes.sql
Normal file
10
sqitch/deploy/add_some_database_indexes.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
-- Deploy guix-data-service:add_some_database_indexes to pg
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
CREATE INDEX ON derivation_outputs (derivation_id);
|
||||||
|
CREATE INDEX ON derivation_outputs (derivation_output_details_id);
|
||||||
|
CREATE INDEX ON nars (store_path);
|
||||||
|
CREATE INDEX ON package_derivations (package_id);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
7
sqitch/revert/add_some_database_indexes.sql
Normal file
7
sqitch/revert/add_some_database_indexes.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
-- Revert guix-data-service:add_some_database_indexes from pg
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
-- XXX Add DDLs here.
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
@ -35,3 +35,4 @@ narinfo_fetch_record 2019-12-03T20:53:28Z <chris@phact> # Add a table to descr
|
||||||
change_nars_size_to_bigint 2019-12-04T21:24:21Z <chris@phact> # Change nars.size to bigint
|
change_nars_size_to_bigint 2019-12-04T21:24:21Z <chris@phact> # Change nars.size to bigint
|
||||||
change_nar_urls_size_to_bigint 2019-12-04T21:49:07Z <chris@phact> # Change nar_urls.size to bigint
|
change_nar_urls_size_to_bigint 2019-12-04T21:49:07Z <chris@phact> # Change nar_urls.size to bigint
|
||||||
sort_out_duplicate_builds 2019-12-05T12:43:53Z <chris@phact> # Sort out duplicate builds
|
sort_out_duplicate_builds 2019-12-05T12:43:53Z <chris@phact> # Sort out duplicate builds
|
||||||
|
add_some_database_indexes 2019-12-05T15:53:04Z Christopher Baines <mail@cbaines.net> # Add some indexes
|
||||||
|
|
|
||||||
7
sqitch/verify/add_some_database_indexes.sql
Normal file
7
sqitch/verify/add_some_database_indexes.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
-- Verify guix-data-service:add_some_database_indexes on pg
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
-- XXX Add verifications here.
|
||||||
|
|
||||||
|
ROLLBACK;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue