mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	优化写入IP的性能
This commit is contained in:
		@@ -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).
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user