From 3711a0a964fa86efe7d7acd93c20875993aafef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kusalananda=20K=C3=A4h=C3=A4ri?= <ak4@sanger.ac.uk> Date: Thu, 30 Jul 2009 13:54:48 +0000 Subject: [PATCH] # patch_55_56_d.sql # # Title: Add an index to the splicing_event_feature table # # Description: # With an index on transcript_id in splicing_event_feature, the # generation of biomarts will be sped up. table.sql updated too. --- sql/patch_55_56_d.sql | 14 ++++++++++++++ sql/table.sql | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 sql/patch_55_56_d.sql diff --git a/sql/patch_55_56_d.sql b/sql/patch_55_56_d.sql new file mode 100644 index 0000000000..bf3bc85225 --- /dev/null +++ b/sql/patch_55_56_d.sql @@ -0,0 +1,14 @@ +# patch_55_56_d.sql +# +# Title: Add an index to the splicing_event_feature table +# +# Description: +# With an index on transcript_id in splicing_event_feature, the +# generation of biomarts will be sped up. + +ALTER TABLE splicing_event_feature + ADD INDEX transcript_idx (transcript_id); + +# patch identifier +INSERT INTO meta (species_id, meta_key, meta_value) +VALUES (NULL, 'patch', 'patch_55_56_d.sql|add_index_to_splicing_event_feature'); diff --git a/sql/table.sql b/sql/table.sql index 65004c1df6..f032888d2a 100755 --- a/sql/table.sql +++ b/sql/table.sql @@ -1600,7 +1600,8 @@ CREATE TABLE splicing_event_feature ( end INT(10) UNSIGNED NOT NULL, PRIMARY KEY (splicing_event_feature_id,exon_id,transcript_id), - KEY se_idx (splicing_event_id) + KEY se_idx (splicing_event_id), + KEY transcript_idx (transcript_idx) ) COLLATE=latin1_swedish_ci TYPE=MyISAM; -- GitLab