mirror of
https://github.com/go-shiori/shiori.git
synced 2025-10-06 11:36:16 +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
|
// Prepare statement
|
||||||
stmtUpdateBookmark, err := db.Preparex(`UPDATE bookmark SET
|
stmtUpdateBookmark, err := tx.Preparex(`UPDATE bookmark SET
|
||||||
url = ?, title = ?, image_url = ?, excerpt = ?, author = ?,
|
url = ?, title = ?, image_url = ?, excerpt = ?, author = ?,
|
||||||
min_read_time = ?, max_read_time = ?, modified = ? WHERE id = ?`)
|
min_read_time = ?, max_read_time = ?, modified = ? WHERE id = ?`)
|
||||||
checkError(err)
|
checkError(err)
|
||||||
|
|
||||||
stmtUpdateBookmarkContent, err := db.Preparex(`UPDATE bookmark_content SET
|
stmtUpdateBookmarkContent, err := tx.Preparex(`UPDATE bookmark_content SET
|
||||||
title = ?, content = ?, html = ? WHERE docid = ?`)
|
title = ?, content = ?, html = ? WHERE docid = ?`)
|
||||||
checkError(err)
|
checkError(err)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue