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

自定义 SQL 同步 #6

Open
LiveGrow opened this issue May 3, 2022 · 5 comments
Open

自定义 SQL 同步 #6

LiveGrow opened this issue May 3, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@LiveGrow
Copy link

LiveGrow commented May 3, 2022

大佬好,我在运行的时候,遇到了timeout的问题,更改思源笔记目录(新目录仅有1个文档)后,再运行时,这一问题得到了解决。
猜测是更改目录前运行时,所需的内存太大了,所以运行失败了(电脑内存是12G)
所以请教大佬可以指定同步文档吗?
比如可以设置成python -m AnkiSiyuan “指定的思源文档的目录”吗?

@Clouder0
Copy link
Owner

Clouder0 commented May 3, 2022

目前是每次检测新增、改变的块,第一次运行的时候会检索全库,所以可能造成 timeout.
在运行目录下新增 last_sync_time 文件,输入内容:

20220503130833

这样就能从 20220503130833 时间之后开始检测。持续使用的话,每次增量处理,应该就不会再出现这样的问题了。

如果之前有想同步的块,那么需要手动修改一点内容刷新更新时间,然后再次同步。

@Clouder0 Clouder0 added the question Further information is requested label May 3, 2022
@Clouder0
Copy link
Owner

Clouder0 commented May 3, 2022

以后可以加上一个自定义 SQL 的配置项,不过近期恐怕没有时间处理。

@Clouder0 Clouder0 changed the title 可以设置指定同步文档吗? 自定义 SQL 同步 May 3, 2022
@Clouder0 Clouder0 added the enhancement New feature or request label May 3, 2022
@Clouder0 Clouder0 self-assigned this May 3, 2022
@LiveGrow
Copy link
Author

LiveGrow commented May 3, 2022

原来如此,明白了,感谢大佬!

@Clouder0
Copy link
Owner

现在修改了同步机制,初次同步应该也不会卡死了。

自定义 SQL 依然 TODO.

@LiveGrow
Copy link
Author

LiveGrow commented Sep 22, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants