Commit 0030b5da authored by Robert Ricci's avatar Robert Ricci
Browse files

Add an index to nodetypeXpid_permissions to make it more efficient

to get a list of what types a project is allowed to use.
parent 4931fecf
......@@ -859,7 +859,8 @@ CREATE TABLE nodes (
CREATE TABLE nodetypeXpid_permissions (
type varchar(30) NOT NULL default '',
pid varchar(12) NOT NULL default '',
PRIMARY KEY (type,pid)
PRIMARY KEY (type,pid),
KEY pid (pid)
) TYPE=MyISAM;
--
......
......@@ -1104,3 +1104,7 @@ last_net_act,last_cpu_act,last_ext_act);
alter table projects modify pcremote_ok \
set('pcplabphys','pcron','pcwa') default NULL;
1.202: Add an index to nodetypeXpid_permissions to make it more efficient
to get a list of what types a project is allowed to use.
alter table nodetypeXpid_permissions add key (pid);
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