优化代码

This commit is contained in:
刘祥超
2022-09-18 16:18:31 +08:00
parent 64b1753c4d
commit a81d610302
19 changed files with 10 additions and 115 deletions

View File

@@ -200,6 +200,9 @@ func (this *FileListDB) Init() error {
}
this.listOlderItemsStmt, err = this.readDB.Prepare(`SELECT "hash" FROM "` + this.itemsTableName + `" ORDER BY "accessWeek" ASC, "id" ASC LIMIT ?`)
if err != nil {
return err
}
this.updateAccessWeekSQL = `UPDATE "` + this.itemsTableName + `" SET "accessWeek"=? WHERE "hash"=?`