同步时间过长,创建引用块阻塞严重

我的场景时这样的

刚改完上一处地方,这时触发了的同步功能,后来发现同步了很久

就在这同步的同时,选中一个词然后通过 alt + [ 创建文档

有以下现象

  1. 选中词汇消失,只剩一个光标在等待,感觉像被别处阻塞
  2. 等同步完成后,刚才光标处才会创建出引用块
  3. 如果阻塞期间将光标移动到别处,改引用块就会创建到别处

当然对于“同步阻塞引用块创建”只是主观判断

其中有一次紧跟着看日志应该跟此处相关

W 2022/05/11 00:23:30 queue.go:125: queue tree [13024ms]

这个操作会不会是跟我这个笔记本太大的缘故?

rebuilt database for notebook [20210822022918-xxxxxx] in [166.92s], tree stat [count=3117, size=105 MB]
1 操作
pipa 在 2022-05-11 02:25:24 更新了该帖

相关帖子

欢迎来到这里!

我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。

注册 关于
请输入回帖内容 ...
  • pipa
    捐赠者 订阅者 作者
    I 2022/05/11 01:41:03 sync.go:254: sync [cloud=89263, local=89268] uploaded in [26.77s]
    I 2022/05/11 01:42:50 sync.go:254: sync [cloud=89268, local=89272] uploaded in [31.33s]
    I 2022/05/11 01:45:42 sync.go:254: sync [cloud=89272, local=89276] uploaded in [27.15s]
    I 2022/05/11 01:48:54 sync.go:254: sync [cloud=89276, local=89288] uploaded in [30.74s]
    I 2022/05/11 01:49:59 sync.go:254: sync [cloud=89288, local=89291] uploaded in [26.29s]
    W 2022/05/11 01:55:00 sync.go:60: sync has been locked
    I 2022/05/11 01:56:06 sync.go:254: sync [cloud=89291, local=89292] uploaded in [22.27s]
    I 2022/05/11 02:01:10 sync.go:181: set sync interval to [8m]
    W 2022/05/11 02:09:32 transaction.go:128: tx [2310ms]
    I 2022/05/11 02:09:43 sync.go:254: sync [cloud=89292, local=89343] uploaded in [32.60s]
    I 2022/05/11 02:19:12 sync.go:254: sync [cloud=89343, local=89499] uploaded in [28.09s]
    I 2022/05/11 02:20:19 sync.go:254: sync [cloud=89499, local=89505] uploaded in [27.45s]
    I 2022/05/11 02:25:23 sync.go:181: set sync interval to [8m]
    I 2022/05/11 02:30:08 sync.go:254: sync [cloud=89505, local=89551] uploaded in [26.16s]
    I 2022/05/11 02:35:14 sync.go:181: set sync interval to [8m]
    I 2022/05/11 02:43:19 sync.go:181: set sync interval to [8m]
    I 2022/05/11 02:49:09 sync.go:254: sync [cloud=89551, local=89577] uploaded in [24.77s]
    I 2022/05/11 02:50:10 sync.go:254: sync [cloud=89577, local=89583] uploaded in [22.43s]
    I 2022/05/11 02:53:25 sync.go:254: sync [cloud=89583, local=89596] uploaded in [25.45s]
    W 2022/05/11 02:57:51 queue.go:125: queue tree [19881ms]
    W 2022/05/11 03:08:35 transaction.go:128: tx [2434ms]
    W 2022/05/11 03:09:01 transaction.go:128: tx [2426ms]
    I 2022/05/11 03:10:37 sync.go:254: sync [cloud=89596, local=89840] uploaded in [178.34s]
    

    改的文件也不多,这同步时间真的接受不了的,一到同步时候很多操作都阻塞

  • 其他回帖
  • pipa
    捐赠者 订阅者 作者
    I 2022/05/11 02:09:43 sync.go:254: sync [cloud=89292, local=89343] uploaded in [32.60s]
    I 2022/05/11 02:19:12 sync.go:254: sync [cloud=89343, local=89499] uploaded in [28.09s]
    

    还是这个笔记本,刚才同步期间,连这个笔记本内部移动文档也阻塞了

    看来应该是同步时候会阻塞很多操作吧

    这个笔记本虽然文件多,但当前我都没有动别的文档,在编辑的也就七八个文档

    这个时间这么长感觉还可以优化下

  • 88250
    订阅者

    用的思源版本是最新版吗?麻烦打包一下完整日志文件上传。

  • 88250
    订阅者

    感觉应该是网速影响的,切换成移动端网络试试是否有所改进。

    后面我们看下能不能尽量减少阻塞时间。