优化WAF日志访问速度

This commit is contained in:
刘祥超
2021-08-22 16:00:32 +08:00
parent 72d7ceb94e
commit 8d759a104b

View File

@@ -238,6 +238,7 @@ func (this *HTTPAccessLogDAO) listAccessLogs(tx *dbs.Tx, lastRequestId string, s
}
if hasFirewallPolicy {
query.Where("firewallPolicyId>0")
query.UseIndex("firewallPolicyId")
}
// keyword