🎨 Reduce the delay in adding rows in database table view https://github.com/siyuan-note/siyuan/issues/10082
This commit is contained in:
parent
02076772bd
commit
512c2186e8
1 changed files with 2 additions and 4 deletions
|
@ -82,12 +82,10 @@ func performTransactions(c *gin.Context) {
|
|||
func pushTransactions(app, session string, transactions []*model.Transaction) {
|
||||
pushMode := util.PushModeBroadcastExcludeSelf
|
||||
if 0 < len(transactions) && 0 < len(transactions[0].DoOperations) {
|
||||
model.WaitForWritingFiles() // 等待文件写入完成,后续渲染才能读取到最新的数据
|
||||
|
||||
action := transactions[0].DoOperations[0].Action
|
||||
isAttrViewTx := strings.Contains(strings.ToLower(action), "attrview")
|
||||
if "insertAttrViewBlock" != action {
|
||||
// 插入行时不等待 Reduce the delay in adding rows in database table view https://github.com/siyuan-note/siyuan/issues/10082
|
||||
model.WaitForWritingFiles()
|
||||
}
|
||||
if isAttrViewTx && "setAttrViewName" != action {
|
||||
pushMode = util.PushModeBroadcast
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue