mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
⚡ 改进书签和标签面板加载速度 https://github.com/siyuan-note/siyuan/issues/6677
This commit is contained in:
parent
443c43753f
commit
876e4425bb
2 changed files with 4 additions and 0 deletions
|
|
@ -162,6 +162,8 @@ func BuildBookmark() (ret *Bookmarks) {
|
||||||
WaitForWritingFiles()
|
WaitForWritingFiles()
|
||||||
if !sql.IsEmptyQueue() {
|
if !sql.IsEmptyQueue() {
|
||||||
sql.WaitForWritingDatabase()
|
sql.WaitForWritingDatabase()
|
||||||
|
} else {
|
||||||
|
util.RandomSleep(200, 500)
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = &Bookmarks{}
|
ret = &Bookmarks{}
|
||||||
|
|
|
||||||
|
|
@ -235,6 +235,8 @@ func BuildTags() (ret *Tags) {
|
||||||
WaitForWritingFiles()
|
WaitForWritingFiles()
|
||||||
if !sql.IsEmptyQueue() {
|
if !sql.IsEmptyQueue() {
|
||||||
sql.WaitForWritingDatabase()
|
sql.WaitForWritingDatabase()
|
||||||
|
} else {
|
||||||
|
util.RandomSleep(200, 500)
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = &Tags{}
|
ret = &Tags{}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue