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

改进桌面端新版同步算法 #4700

Closed
88250 opened this issue Apr 26, 2022 · 0 comments
Closed

改进桌面端新版同步算法 #4700

88250 opened this issue Apr 26, 2022 · 0 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Apr 26, 2022

尽量避免下载云端索引已达到减少流量使用并提升性能的目的,仅支持桌面端,不支持 Docker、移动端。

  • 在 data/.siyuan/conf.json 中保存设备 ID
  • 每次同步时先获取云端 conf.json 中的设备 ID
    • 如果和本地设备 ID 相同,则使用本地已有的索引计算 diff
    • 如果不同则走继续走原有逻辑,即拉取云端索引和本地索引计算 diff
@88250 88250 self-assigned this Apr 26, 2022
@88250 88250 changed the title 改进同步算法 改进桌面端同步算法 Apr 28, 2022
@88250 88250 changed the title 改进桌面端同步算法 改进桌面端新版同步算法 Apr 28, 2022
@88250 88250 added this to the 2.0.3 milestone Apr 28, 2022
@88250 88250 closed this as completed Apr 28, 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

1 participant