Skip to content
Snippets Groups Projects
Commit 021d2e8f authored by Monika Komorowska's avatar Monika Komorowska
Browse files

Reorder an index in unmapped_object

parent e6a65b25
No related branches found
No related tags found
No related merge requests found
# patch_65_66_c.sql
#
# Title: Reorder an index in unmapped_object.
#
# Description:
# The unique_unmapped_obj_idx index in the unmapped_object table is
# ineffective when querying the table. Its first part, for example,
# partly overlaps with the id_idx index. A reordering was suggested by
# the Ensembl Regulation team.
ALTER TABLE unmapped_object
DROP INDEX unique_unmapped_obj_idx,
ADD UNIQUE INDEX unique_unmapped_obj_idx
(ensembl_id, ensembl_object_type, identifier, unmapped_reason_id,
parent, external_db_id);
# Patch identifier:
INSERT INTO meta (species_id, meta_key, meta_value)
VALUES (NULL, 'patch', 'patch_65_66_c.sql|reorder_unmapped_obj_index');
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment