Skip to content
Snippets Groups Projects
Commit 84a09471 authored by Andy Yates's avatar Andy Yates
Browse files

[ENSCORESW-672]. Creating a transcript_id idx on transcript_intron_supporting_evidence.

This was missed off the first implementation of the table. It has resulted
in silly long query times because MySQL was forced into performing full
table scans to find evidence related to the transcript. Adding an index
in should fix this.
parent a31425e0
No related branches found
No related tags found
No related merge requests found
# patch_73_74_g.sql
#
# Title: Adding transcript index to transcript_intron_supporting_evidence
#
# Description:
#
# Adding an index on transcript id to transcript_intron_supporting_evidence to
# speed up retrieval of supporting features from a Transcript object
CREATE INDEX transcript_idx ON transcript_intron_supporting_evidence(transcript_id);
# patch identifier
INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_73_74_g.sql|add_transcript_idx_tise');
......@@ -272,9 +272,8 @@ INSERT INTO meta (species_id, meta_key, meta_value)
VALUES (NULL, 'patch', 'patch_73_74_e.sql|remove_canonical_annotation');
INSERT INTO meta (species_id, meta_key, meta_value)
VALUES (NULL, 'patch', 'patch_73_74_f.sql|remove_pair_dna_align');
INSERT INTO meta (species_id, meta_key, meta_value)
VALUES (NULL, 'patch', 'patch_73_74_g.sql|add_transcript_idx_tise');
/**
@table meta_coord
......@@ -1823,7 +1822,8 @@ transcript_id INT(10) UNSIGNED NOT NULL,
intron_supporting_evidence_id INT(10) UNSIGNED NOT NULL,
previous_exon_id INT(10) UNSIGNED NOT NULL,
next_exon_id INT(10) UNSIGNED NOT NULL,
PRIMARY KEY (intron_supporting_evidence_id, transcript_id)
PRIMARY KEY (intron_supporting_evidence_id, transcript_id),
KEY transcript_idx (transcript_id)
) COLLATE=latin1_swedish_ci ENGINE=MyISAM;
......
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