Add some database indexes

This commit is contained in:
Christopher Baines 2019-12-05 17:19:04 +01:00
parent 00bfa5336e
commit 0e97c55c0c
4 changed files with 25 additions and 0 deletions

View 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;

View File

@ -0,0 +1,7 @@
-- Revert guix-data-service:add_some_database_indexes from pg
BEGIN;
-- XXX Add DDLs here.
COMMIT;

View File

@ -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_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
add_some_database_indexes 2019-12-05T15:53:04Z Christopher Baines <mail@cbaines.net> # Add some indexes

View File

@ -0,0 +1,7 @@
-- Verify guix-data-service:add_some_database_indexes on pg
BEGIN;
-- XXX Add verifications here.
ROLLBACK;