2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/data-service.git synced 2023-12-14 03:23:03 +01:00
data-service/sqitch/deploy/add_index_on_builds_derivation_file_name.sql
Christopher Baines 299f9dc480 Add an index on the derivation_file_name field in the builds table
As this helps when finding builds relating to specific derivations.
2019-12-12 20:07:22 +00:00

8 lines
167 B
PL/PgSQL

-- Deploy guix-data-service:add_index_on_builds_derivation_file_name to pg
BEGIN;
CREATE INDEX builds_derivation_file_name ON builds(derivation_file_name);
COMMIT;