Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

改进搜索性能 #6655

Closed
2 tasks done
Yuminis98 opened this issue Nov 20, 2022 · 9 comments
Closed
2 tasks done

改进搜索性能 #6655

Yuminis98 opened this issue Nov 20, 2022 · 9 comments
Assignees
Milestone

Comments

@Yuminis98
Copy link

Yuminis98 commented Nov 20, 2022

该问题是否已经被报告过了? Is there an existing issue for this?

  • 我已经搜索了 Issues,没有发现类似问题
    I have searched the existing issues

该问题是否能够在默认主题(daylight/midnight)下重现? Can the issue be reproduced with the default theme (daylight/midnight)?

  • 我能够在默认主题下重现该问题
    I was able to reproduce the issue with the default theme

描述问题 Describe the problem

我用了思源一年多吧。
自己的笔记一共也就1.2G,不算特别多吧
但从某次更新开始以后,我就觉引用的搜寻时间明显变慢了
现在我基本每【【创建一个引用,都要等待5s左右,
这对一个双链笔记来说,已经没法正常使用了。。。

特此来反馈,想看看是什么问题。
如果是数据量太大,那1G就这样了,那再用个3、5年,笔记大小达到5、6G甚至更大的时候,岂不是打一个引用就要等十几秒了😂😂
我的机器是yoga14是2021 刚买了2年,确定不是电脑性能的问题

期待的结果 Expected result

现在【【一下就要等5s明显不是一个可用的速度,极大打断了记笔记的节奏。
如果是数据量导致的这个问题
那么引用的时候,先不要搜索所有的数据,而是先吧近期的数据或者高频的数据搜索出来, 再翻页的时候再去加载比较久远的数据
是否可以降低引用搜索时间

截屏或者录屏演示 Screenshot or screen recording presentation

image

QQ.20221120102149.mp4

版本环境 Version environment

- Version: 2.5.1 beta
- Operating System: win
- Browser (if used):

日志文件 Log file

siyuan.log

更多信息 More information

No response

@netdog2019
Copy link

netdog2019 commented Nov 20, 2022

我的笔记也是1.2G,最近也发现有这个问题,输入[[后要转很多圈,才能显示出来。
我的电脑肯定也没问题,Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz 2.80 GHz,10核20线程,32G内存。

@Yuminis98
Copy link
Author

Yuminis98 commented Nov 20, 2022

我的笔记也是1.2G,最近也发现有这个问题,输入[[后要转很多圈,才能显示出来。

对的,而且我是在某一次更新以后,明显感觉变慢了。
以前都没有转圈这个加载过程,结果都是瞬间出来了的。
现在一转圈,转5s,延迟太明显了

@Soltus
Copy link
Contributor

Soltus commented Nov 20, 2022

我也感觉变慢了

@UFDXD
Copy link

UFDXD commented Nov 20, 2022

限制搜索结果数量试试。翻页没必要,尽量关键词精确,一次就命中条目,因为翻页打断文字输出思路,。

@AugustTuan
Copy link

我只要 输入 【【
就能空转2、3秒
image

@88250
Copy link
Member

88250 commented Nov 20, 2022

请各位试下最新发布的 dev 版是否有改观,谢谢。

@88250 88250 changed the title 引用的速度是否可以优化,有点过于慢了,已经影响使用了 改进块引搜索性能 Nov 20, 2022
@88250 88250 self-assigned this Nov 20, 2022
@88250 88250 added this to the 2.5.1 milestone Nov 20, 2022
88250 added a commit that referenced this issue Nov 20, 2022
@88250 88250 closed this as completed Nov 20, 2022
@88250 88250 changed the title 改进块引搜索性能 改进搜索性能 Nov 20, 2022
@Soltus
Copy link
Contributor

Soltus commented Nov 20, 2022

请各位试下最新发布的 dev 版是否有改观,谢谢。

有改观,很快

@88250
Copy link
Member

88250 commented Nov 20, 2022

@Soltus 明天会发布 dev5,又改进了一些,有空的话麻烦再帮忙测试看看,多谢。

@Soltus
Copy link
Contributor

Soltus commented Nov 20, 2022

@Soltus 明天会发布 dev5,又改进了一些,有空的话麻烦再帮忙测试看看,多谢。

OK

88250 added a commit that referenced this issue Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants