优化写入IP的性能

This commit is contained in:
刘祥超
2024-05-20 18:22:28 +08:00
parent 40b7bf03b5
commit f61dbb42c5

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).