Improve the image loading performance in the database https://github.com/siyuan-note/siyuan/issues/15245

This commit is contained in:
Daniel 2025-07-09 16:18:53 +08:00
parent 9bb91c3a97
commit c852f6f51a
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
8 changed files with 113 additions and 8 deletions

View file

@ -292,7 +292,7 @@ func buildAssetContentOrderBy(orderBy int) string {
var assetContentSearcher = NewAssetsSearcher()
func RemoveIndexAssetContent(absPath string) {
func removeIndexAssetContent(absPath string) {
defer logging.Recover()
assetsDir := util.GetDataAssetsAbsPath()
@ -300,7 +300,7 @@ func RemoveIndexAssetContent(absPath string) {
sql.DeleteAssetContentsByPathQueue(p)
}
func IndexAssetContent(absPath string) {
func indexAssetContent(absPath string) {
defer logging.Recover()
ext := filepath.Ext(absPath)