mirror of
https://github.com/go-shiori/shiori.git
synced 2025-10-02 01:36:45 +08:00
Fix update is really slow
This commit is contained in:
parent
5b36d4500f
commit
9d025dc6a2
1 changed files with 2 additions and 2 deletions
|
@ -430,12 +430,12 @@ func (db *SQLiteDatabase) UpdateBookmarks(bookmarks []model.Bookmark) (result []
|
|||
}()
|
||||
|
||||
// Prepare statement
|
||||
stmtUpdateBookmark, err := db.Preparex(`UPDATE bookmark SET
|
||||
stmtUpdateBookmark, err := tx.Preparex(`UPDATE bookmark SET
|
||||
url = ?, title = ?, image_url = ?, excerpt = ?, author = ?,
|
||||
min_read_time = ?, max_read_time = ?, modified = ? WHERE id = ?`)
|
||||
checkError(err)
|
||||
|
||||
stmtUpdateBookmarkContent, err := db.Preparex(`UPDATE bookmark_content SET
|
||||
stmtUpdateBookmarkContent, err := tx.Preparex(`UPDATE bookmark_content SET
|
||||
title = ?, content = ?, html = ? WHERE docid = ?`)
|
||||
checkError(err)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue