优化WAF日志访问速度

This commit is contained in:
GoEdgeLab
2021-08-22 16:00:32 +08:00
parent 66ef030f76
commit b3f8a7704a

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