Add additional composite index to speed up display of pages where a device has a lot of syslogs. In our environment, this took page loads for some devices from over 60 seconds to nearly instant

This commit is contained in:
Tyler Sweet
2018-12-03 10:44:03 -06:00
parent bd5e692dc7
commit 43ee980446

1
sql-schema/273.sql Normal file
View File

@@ -0,0 +1 @@
ALTER TABLE `syslog` ADD KEY `device_id-timestamp` (`device_id`,`timestamp`);