优化写入IP的性能

This commit is contained in:
GoEdgeLab
2024-05-20 18:22:28 +08:00
parent 9f001f4396
commit fa05d83155

View File

@@ -297,7 +297,7 @@ func (this *IPItemDAO) DeleteOldItemWithValue(tx *dbs.Tx, listId int64, value st
}
ones, err := this.Query(tx).
ResultPk().
UseIndex("ipFrom").
UseIndex("value").
Attr("listId", listId).
Attr("value", value).
Attr("state", IPItemStateEnabled).