Create an index on narinfo_fetch_records
This greatly improves the performance of the derivation-outputs page.
This commit is contained in:
parent
8af7130239
commit
0c4e6a2fe4
4 changed files with 23 additions and 0 deletions
8
sqitch/deploy/create_narinfo_fetch_records_index.sql
Normal file
8
sqitch/deploy/create_narinfo_fetch_records_index.sql
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
-- Deploy guix-data-service:create_narinfo_fetch_records_index to pg
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
CREATE INDEX narinfo_fetch_records_narinfo_signature_data_id ON
|
||||||
|
narinfo_fetch_records (narinfo_signature_data_id);
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
7
sqitch/revert/create_narinfo_fetch_records_index.sql
Normal file
7
sqitch/revert/create_narinfo_fetch_records_index.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
-- Revert guix-data-service:create_narinfo_fetch_records_index from pg
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
DROP INDEX narinfo_fetch_records_narinfo_signature_data_id;
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
@ -54,3 +54,4 @@ update_build_servers_build_config 2020-02-13T20:07:19Z Christopher Baines <mail@
|
||||||
make_some_constraints_deferrable 2020-02-16T10:54:22Z Christopher Baines <mail@cbaines.net> # Make some constraints deferrable
|
make_some_constraints_deferrable 2020-02-16T10:54:22Z Christopher Baines <mail@cbaines.net> # Make some constraints deferrable
|
||||||
guix_revision_system_test_derivations_add_system 2020-03-19T21:30:33Z Christopher Baines <mail@cbaines.net> # Add a system column to the guix_revision_system_test_derivations table
|
guix_revision_system_test_derivations_add_system 2020-03-19T21:30:33Z Christopher Baines <mail@cbaines.net> # Add a system column to the guix_revision_system_test_derivations table
|
||||||
drop_package_versions_by_guix_revision_range 2020-03-24T20:40:38Z Christopher Baines <mail@cbaines.net> # Drop package_versions_by_guix_revision_range
|
drop_package_versions_by_guix_revision_range 2020-03-24T20:40:38Z Christopher Baines <mail@cbaines.net> # Drop package_versions_by_guix_revision_range
|
||||||
|
create_narinfo_fetch_records_index 2020-03-25T19:07:28Z Christopher Baines <mail@cbaines.net> # Create an index on narinfo_fetch_records
|
||||||
|
|
|
||||||
7
sqitch/verify/create_narinfo_fetch_records_index.sql
Normal file
7
sqitch/verify/create_narinfo_fetch_records_index.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
-- Verify guix-data-service:create_narinfo_fetch_records_index on pg
|
||||||
|
|
||||||
|
BEGIN;
|
||||||
|
|
||||||
|
-- XXX Add verifications here.
|
||||||
|
|
||||||
|
ROLLBACK;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue