🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113

This commit is contained in:
Liang Ding 2023-01-25 20:04:05 +08:00
parent 3f87f3da5e
commit 9b28cdfdf1
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 29 additions and 19 deletions

View file

@ -54,7 +54,7 @@ type dbQueueOperation struct {
func AutoFlushTx() {
for {
time.Sleep(util.SQLFlushInterval)
task.PrependTask(task.DatabaseIndexCommit, FlushQueue)
task.AppendTask(task.DatabaseIndexCommit, FlushQueue)
}
}