From 74accb4b9d3e456df9b9644f826ab096d71a5c68 Mon Sep 17 00:00:00 2001 From: jenz Date: Sat, 30 Mar 2024 21:16:28 +0100 Subject: [PATCH] added indexing on IP --- jenz_ban_detector/mysql/create_db.sql | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jenz_ban_detector/mysql/create_db.sql b/jenz_ban_detector/mysql/create_db.sql index c21a7d56..4291a4c3 100644 --- a/jenz_ban_detector/mysql/create_db.sql +++ b/jenz_ban_detector/mysql/create_db.sql @@ -1,3 +1,4 @@ +-- ban_detector.ban_detector definition CREATE TABLE `ban_detector` ( `fingerprint` varchar(512) DEFAULT NULL, `ip` varchar(64) NOT NULL, @@ -7,5 +8,8 @@ CREATE TABLE `ban_detector` ( `modified_on` datetime DEFAULT NULL, `last_connect` datetime DEFAULT NULL, `disable_html_motd` int(11) DEFAULT 0, - PRIMARY KEY (`steamid`) + PRIMARY KEY (`steamid`), + KEY `ip_index` (`ip`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; + +