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
fc56d4d6
Commit
fc56d4d6
authored
Jan 31, 2003
by
Robert Ricci
Browse files
Change join order to speed a query up a bit.
parent
d3ebb24d
Changes
1
Show whitespace changes
Inline
Side-by-side
tmcd/tmcd.c
View file @
fc56d4d6
...
...
@@ -3046,8 +3046,8 @@ COMMAND_PROTOTYPE(dovnodelist)
char
buf
[
MYBUFSIZE
];
int
nrows
;
res
=
mydb_query
(
"select r.node_id,n.jailflag from
reserved
as
r
"
"left join
nodes
as
n
on r.node_id=n.node_id "
res
=
mydb_query
(
"select r.node_id,n.jailflag from
nodes
as
n
"
"left join
reserved
as
r
on r.node_id=n.node_id "
"left join node_types as nt on nt.type=n.type "
"where nt.isvirtnode=1 and n.phys_nodeid='%s'"
,
2
,
reqp
->
nodeid
);
...
...
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