Skip to content
Snippets Groups Projects
Commit c7ca81ca authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Felix's ditag table patch.

parent 0dad3c1b
No related branches found
No related tags found
No related merge requests found
# patch_43_44_b
#
# title: optimising ditag tables
#
# description:
# some small memory & speed improvements for the ditag tables
ALTER TABLE ditag CHANGE COLUMN type type varchar(30) NOT NULL, \
CHANGE COLUMN tag_count tag_count smallint(6) unsigned NOT NULL default 1, \
CHANGE COLUMN sequence sequence TINYTEXT NOT NULL, \
CHANGE COLUMN name name varchar(30) NOT NULL;
ALTER TABLE ditag_feature CHANGE COLUMN cigar_line cigar_line TINYTEXT NOT NULL, \
CHANGE COLUMN ditag_side ditag_side ENUM('F', 'L', 'R') NOT NULL;
CREATE INDEX seq_region_idx ON ditag_feature (seq_region_id, seq_region_start, seq_region_end);
# patch identifier
INSERT INTO meta (meta_key, meta_value) VALUES ('patch', 'patch_43_44_b.sql|optimise_ditag_tables');
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