Giter Site home page Giter Site logo

Refactor the blocktree storage about siyuan HOT 28 CLOSED

88250 avatar 88250 commented on July 30, 2024
Refactor the blocktree storage

from siyuan.

Comments (28)

IAliceBobI avatar IAliceBobI commented on July 30, 2024 1

之前出现过读写接口都串行,后来把只限制了写接口。现在看起来好像读接口也串行了。

来个批量属性查询的接口可以缓解。 #11786

from siyuan.

TCOTC avatar TCOTC commented on July 30, 2024

能提高启动速度吗?

from siyuan.

wy16W2pIilK1xgqN avatar wy16W2pIilK1xgqN commented on July 30, 2024

有兴趣由 SQLite 切换到DuckDB。
刚刚准备发这个的提议,写了一堆,卡网卡没了😿

from siyuan.

88250 avatar 88250 commented on July 30, 2024

能提高启动速度吗?

能,不过提升有限。这个改进主要还是提升稳定性,避免之前定时落盘的风险。

from siyuan.

Soltus avatar Soltus commented on July 30, 2024

应该也能降低内核退出概率

from siyuan.

Temacc0531 avatar Temacc0531 commented on July 30, 2024

尝鲜了一下,启动速度快挺多🤩

from siyuan.

AvoidantPerDis avatar AvoidantPerDis commented on July 30, 2024

感觉启动是快了,日常编辑卡了不少,特别是刷闪卡的时候(1000张左右),怎么点都没反应。换到上一版dev就没事,其他条件都一样

from siyuan.

Soltus avatar Soltus commented on July 30, 2024

安卓端好像反而更慢了

from siyuan.

88250 avatar 88250 commented on July 30, 2024

@AvoidantPerDis 打开开发者工具看看是哪个请求卡,另外还需要提供一下内核日志。

from siyuan.

AvoidantPerDis avatar AvoidantPerDis commented on July 30, 2024

@AvoidantPerDis 打开开发者工具看看是哪个请求卡,另外还需要提供一下内核日志。

recording
system-log.zip

from siyuan.

AvoidantPerDis avatar AvoidantPerDis commented on July 30, 2024

卡了能有1分钟

from siyuan.

TCOTC avatar TCOTC commented on July 30, 2024

@AvoidantPerDis 截图看一下具体是哪一条请求卡住了 贴着屏幕看了一下,好像都挺卡

from siyuan.

AvoidantPerDis avatar AvoidantPerDis commented on July 30, 2024

@AvoidantPerDis 看一下是哪个请求卡住了

我刚刚关掉插件自查了一下,应该是番茄的闪卡优先级插件导致的,不过优先级我刚需

from siyuan.

TCOTC avatar TCOTC commented on July 30, 2024

去仓库提个 issue 问问看

image

p.s. 原来可以在新页签打开 GIF 看

from siyuan.

88250 avatar 88250 commented on July 30, 2024

@AvoidantPerDis 从块标打开属性面板看看 getBlockAttrs 的耗时。

另外,你之前那个录屏看不到最新请求,请求一直是最上面的:

image

from siyuan.

AvoidantPerDis avatar AvoidantPerDis commented on July 30, 2024

@AvoidantPerDis 从块标打开属性面板看看 getBlockAttrs 的耗时。

另外,你之前那个录屏看不到最新请求,请求一直是最上面的:

image

image
属性面板秒开的

from siyuan.

AvoidantPerDis avatar AvoidantPerDis commented on July 30, 2024

recording
Uploading 127.0.0.1.zip…

from siyuan.

AvoidantPerDis avatar AvoidantPerDis commented on July 30, 2024

recording
这是上一版的速度,虽然也慢但是至少快一半
127.0.0.1 (2).zip

from siyuan.

AvoidantPerDis avatar AvoidantPerDis commented on July 30, 2024

这个应该也可以用到以后闪卡的不同flag排序

之前出现过读写接口都串行,后来把只限制了写接口。现在看起来好像读接口也串行了。

来个批量属性查询的接口可以缓解。 #11786

from siyuan.

88250 avatar 88250 commented on July 30, 2024

改进了一些性能,等新版本发布后各位帮忙测试看看。

from siyuan.

AvoidantPerDis avatar AvoidantPerDis commented on July 30, 2024

关联列搜索好像变卡了

from siyuan.

88250 avatar 88250 commented on July 30, 2024

录屏看下请求耗时

from siyuan.

AvoidantPerDis avatar AvoidantPerDis commented on July 30, 2024

录屏看下请求耗时

好像是最新dev的事,之前dev没有,而且整体都比较卡

from siyuan.

88250 avatar 88250 commented on July 30, 2024

那应该不是 dev7 改动导致的,dev7 没有做过相关改动。

不过刚刚找到一个细节优化点,等 dev8 再测测,谢谢。

from siyuan.

AvoidantPerDis avatar AvoidantPerDis commented on July 30, 2024

那应该不是 dev7 改动导致的,dev7 没有做过相关改动。

不过刚刚找到一个细节优化点,等 dev8 再测测,谢谢。

感觉多页签的情况还是可以优化的,最近期末周开好几个大文档,都不敢开侧边的大纲面板了

from siyuan.

zxhd863943427 avatar zxhd863943427 commented on July 30, 2024

看了下blocktree.db的内容,似乎都是blocks里已有的内容?为啥要单独存一份?

from siyuan.

88250 avatar 88250 commented on July 30, 2024

from siyuan.

88250 avatar 88250 commented on July 30, 2024

@zxhd863943427 对了,有个重要原因就是 blocks 是异步写入的,存在较大延迟,而 blocktree 要求即时写入,所以不能直接用 blocks 库表。

from siyuan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.