diff --git a/collector/init.sql b/collector/init.sql index 7897949..ca96ba2 100644 --- a/collector/init.sql +++ b/collector/init.sql @@ -156,4 +156,7 @@ CREATE TABLE `server_ping_time` ( `server_id` int, `time` bigint(20) ); -ALTER TABLE `server_ping_time` ADD FOREIGN KEY (`server_id`) REFERENCES `server` (`id`); \ No newline at end of file +ALTER TABLE `server_ping_time` ADD FOREIGN KEY (`server_id`) REFERENCES `server` (`id`); + +-- change done to fix some lag on select queries +ALTER TABLE `monitor_log` ADD INDEX(`server_id`, `log_type`); \ No newline at end of file