Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
e8abdcae
Commit
e8abdcae
authored
18 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
Added extra indices to *_attrib tables to improve performance of certain queries.
parent
c3d22365
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sql/patch_40_41_f.sql
+17
-0
17 additions, 0 deletions
sql/patch_40_41_f.sql
sql/table.sql
+6
-0
6 additions, 0 deletions
sql/table.sql
with
23 additions
and
0 deletions
sql/patch_40_41_f.sql
0 → 100644
+
17
−
0
View file @
e8abdcae
#
patch_40_41_f
#
#
title
:
attrib
tavle
indices
#
#
description
:
#
Add
extra
indices
to
attrib
tables
to
improve
performance
.
ALTER
TABLE
misc_attrib
ADD
INDEX
val_only_idx
(
value
(
40
));
ALTER
TABLE
seq_region_attrib
ADD
INDEX
val_only_idx
(
value
(
40
));
ALTER
TABLE
gene_attrib
ADD
INDEX
val_only_idx
(
value
(
40
));
ALTER
TABLE
transcript_attrib
ADD
INDEX
val_only_idx
(
value
(
40
));
ALTER
TABLE
translation_attrib
ADD
INDEX
val_only_idx
(
value
(
40
));
#
patch
identifier
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'patch'
,
'patch_40_41_f.sql|attrib_indices'
);
This diff is collapsed.
Click to expand it.
sql/table.sql
+
6
−
0
View file @
e8abdcae
...
...
@@ -868,6 +868,7 @@ INSERT INTO meta (meta_key, meta_value) VALUES ('patch', 'patch_40_41_b.sql|info
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'patch'
,
'patch_40_41_c.sql|xref_priority'
);
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'patch'
,
'patch_40_41_d.sql|ditag_primary_key_type'
);
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'patch'
,
'patch_40_41_e.sql|schema_version'
);
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'patch'
,
'patch_40_41_f.sql|attrib_indices'
);
################################################################################
#
...
...
@@ -993,6 +994,7 @@ CREATE TABLE misc_attrib (
value
TEXT
NOT
NULL
DEFAULT
''
,
KEY
type_val_idx
(
attrib_type_id
,
value
(
40
)),
KEY
val_only_idx
(
value
(
40
)),
KEY
misc_feature_idx
(
misc_feature_id
)
)
COLLATE
=
latin1_swedish_ci
TYPE
=
MyISAM
;
...
...
@@ -1010,6 +1012,7 @@ CREATE TABLE translation_attrib (
value
TEXT
NOT
NULL
DEFAULT
''
,
KEY
type_val_idx
(
attrib_type_id
,
value
(
40
)),
KEY
val_only_idx
(
value
(
40
)),
KEY
translation_idx
(
translation_id
)
)
COLLATE
=
latin1_swedish_ci
TYPE
=
MyISAM
;
...
...
@@ -1026,6 +1029,7 @@ CREATE TABLE transcript_attrib (
value
TEXT
NOT
NULL
DEFAULT
''
,
KEY
type_val_idx
(
attrib_type_id
,
value
(
40
)),
KEY
val_only_idx
(
value
(
40
)),
KEY
transcript_idx
(
transcript_id
)
)
COLLATE
=
latin1_swedish_ci
TYPE
=
MyISAM
;
...
...
@@ -1043,6 +1047,7 @@ CREATE TABLE gene_attrib (
value
TEXT
NOT
NULL
DEFAULT
''
,
KEY
type_val_idx
(
attrib_type_id
,
value
(
40
)),
KEY
val_only_idx
(
value
(
40
)),
KEY
gene_idx
(
gene_id
)
)
COLLATE
=
latin1_swedish_ci
TYPE
=
MyISAM
;
...
...
@@ -1060,6 +1065,7 @@ CREATE TABLE seq_region_attrib (
value
TEXT
NOT
NULL
DEFAULT
''
,
KEY
type_val_idx
(
attrib_type_id
,
value
(
40
)),
KEY
val_only_idx
(
value
(
40
)),
KEY
seq_region_idx
(
seq_region_id
)
)
COLLATE
=
latin1_swedish_ci
TYPE
=
MyISAM
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment