Closed wtune closed 4 years ago
Missing index on table log column create_time might make the underlying query issued via LogRepository#findIp slow. Since this query try to find log in a certain time interval.
LogRepository#findIp
https://github.com/elunez/eladmin/blob/7272f88719987503d21afb53d946c4b358278e8e/eladmin-logging/src/main/java/me/zhengjie/repository/LogRepository.java#L25
Add Index on log.create_time
后续修改
Problem
Missing index on table log column create_time might make the underlying query issued via
LogRepository#findIp
slow. Since this query try to find log in a certain time interval.https://github.com/elunez/eladmin/blob/7272f88719987503d21afb53d946c4b358278e8e/eladmin-logging/src/main/java/me/zhengjie/repository/LogRepository.java#L25
Possible Solution
Add Index on log.create_time