mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
⚡ Improve the image loading performance in the database https://github.com/siyuan-note/siyuan/issues/15245
This commit is contained in:
parent
9bb91c3a97
commit
c852f6f51a
8 changed files with 113 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue