Commit 7d0295e5 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Speed up very slow query in nodeidtocontrolnet! Hmm, I'm really liking

that slow query log!
parent 1ba82c91
......@@ -3346,9 +3346,8 @@ nodeidtocontrolnet(char *nodeid, int *net)
MYSQL_RES *res;
MYSQL_ROW row;
res = mydb_query("select control_net from node_types as nt "
"left join nodes as n "
"on nt.type=n.type "
res = mydb_query("select control_net from nodes as n "
"left join node_types as nt on nt.type=n.type "
"where n.node_id='%s'",
1, nodeid);
......
Markdown is supported
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