optimized blocking issue during bulk log data deletion

Signed-off-by: wozulong <>
This commit is contained in:
wozulong
2024-09-10 17:24:44 +08:00
parent 208bc5e794
commit a60f209c85
2 changed files with 22 additions and 4 deletions

View File

@@ -192,7 +192,7 @@ func DeleteHistoryLogs(c *gin.Context) {
})
return
}
count, err := model.DeleteOldLog(targetTimestamp)
count, err := model.DeleteOldLog(c.Request.Context(), targetTimestamp, 100)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,