Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
70f54365
Commit
70f54365
authored
May 09, 2003
by
Leigh B. Stoller
Browse files
Add index(idx) to experiment_stats table.
parent
c7212a59
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
70f54365
...
...
@@ -203,6 +203,7 @@ CREATE TABLE experiment_stats (
maxlinks
tinyint
(
3
)
unsigned
default
'0'
,
batch
tinyint
(
3
)
unsigned
default
'0'
,
PRIMARY
KEY
(
eid
,
pid
,
idx
)
KEY
idx
(
idx
)
)
TYPE
=
MyISAM
;
--
...
...
sql/database-migrate.txt
View file @
70f54365
...
...
@@ -401,3 +401,9 @@ last_net_act,last_cpu_act,last_ext_act);
PRIMARY KEY (node_id,veth_id),
KEY IP (IP)
) TYPE=MyISAM;
1.140: Add index to experiment_stats table to speed up big joins by
several orders of magnitude!
alter table experiment_stats add index(idx);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment