mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-19 03:06:26 +00:00
small perf improvement in sqlite db.
This commit is contained in:
parent
8c572dead1
commit
12037961ff
@ -82,6 +82,7 @@ CREATE TABLE Member (
|
|||||||
PRIMARY KEY (networkId, nodeId)
|
PRIMARY KEY (networkId, nodeId)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX Member_networkId_nodeId ON Member(networkId,nodeId);
|
||||||
CREATE INDEX Member_networkId_activeBridge ON Member(networkId, activeBridge);
|
CREATE INDEX Member_networkId_activeBridge ON Member(networkId, activeBridge);
|
||||||
CREATE INDEX Member_networkId_memberRevision ON Member(networkId, memberRevision);
|
CREATE INDEX Member_networkId_memberRevision ON Member(networkId, memberRevision);
|
||||||
|
|
||||||
|
@ -79,9 +79,11 @@
|
|||||||
" authorized integer NOT NULL DEFAULT(0),\n"\
|
" authorized integer NOT NULL DEFAULT(0),\n"\
|
||||||
" activeBridge integer NOT NULL DEFAULT(0),\n"\
|
" activeBridge integer NOT NULL DEFAULT(0),\n"\
|
||||||
" memberRevision integer NOT NULL DEFAULT(0),\n"\
|
" memberRevision integer NOT NULL DEFAULT(0),\n"\
|
||||||
|
" flags integer NOT NULL DEFAULT(0),\n"\
|
||||||
" PRIMARY KEY (networkId, nodeId)\n"\
|
" PRIMARY KEY (networkId, nodeId)\n"\
|
||||||
");\n"\
|
");\n"\
|
||||||
"\n"\
|
"\n"\
|
||||||
|
"CREATE INDEX Member_networkId_nodeId ON Member(networkId,nodeId);\n"\
|
||||||
"CREATE INDEX Member_networkId_activeBridge ON Member(networkId, activeBridge);\n"\
|
"CREATE INDEX Member_networkId_activeBridge ON Member(networkId, activeBridge);\n"\
|
||||||
"CREATE INDEX Member_networkId_memberRevision ON Member(networkId, memberRevision);\n"\
|
"CREATE INDEX Member_networkId_memberRevision ON Member(networkId, memberRevision);\n"\
|
||||||
"\n"\
|
"\n"\
|
||||||
|
Loading…
Reference in New Issue
Block a user