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
4e28ebc9
Commit
4e28ebc9
authored
Apr 13, 2006
by
Mike Hibler
Browse files
Add 'state' as an index for the experiments table to take care of some
heavyweight queries in idlemail
parent
282ca901
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
4e28ebc9
...
...
@@ -782,7 +782,8 @@ CREATE TABLE experiments (
instance_idx
int
(
10
)
unsigned
NOT
NULL
default
'0'
,
PRIMARY
KEY
(
eid
,
pid
),
KEY
idx
(
idx
),
KEY
batchmode
(
batchmode
)
KEY
batchmode
(
batchmode
),
KEY
state
(
state
)
)
TYPE
=
MyISAM
;
--
...
...
sql/database-migrate.txt
View file @
4e28ebc9
...
...
@@ -3290,3 +3290,9 @@ last_net_act,last_cpu_act,last_ext_act);
alter table node_types add column pxe_boot_path text \
after modelnetedge_osid;
4.50: Make 'state' an index in the experiment table to knock down a couple
of frequent heavyweight queries.
alter table experiments add index (state);
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