add in the README about creating an INDEX for comments so it doesn't traverse
the whole table for each ban.
This commit is contained in:
parent
af95f4d3e0
commit
e64b87fe89
|
@ -32,6 +32,7 @@ CREATE TABLE sessions (
|
||||||
user MEDIUMTEXT NOT NULL,
|
user MEDIUMTEXT NOT NULL,
|
||||||
time INT NOT NULL
|
time INT NOT NULL
|
||||||
);
|
);
|
||||||
|
CREATE INDEX comments_ban_id ON comments(ban_id);
|
||||||
|
|
||||||
To configure the plugin, create the SQLite2 database with above structure and
|
To configure the plugin, create the SQLite2 database with above structure and
|
||||||
set supybot.plugins.bantracker.database to its filename. Then enable it, either
|
set supybot.plugins.bantracker.database to its filename. Then enable it, either
|
||||||
|
|
Loading…
Reference in New Issue