Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Do not perform check index on mobile https://ld246.com/article/1734939896061 https://github.com/siyuan-note/siyuan/issues/10761

Daniel6f443be5781b
diff --git a/kernel/model/index_fix.go b/kernel/model/index_fix.go
index 366ab2c61b..78b57fb8db 100644
--- a/kernel/model/index_fix.go
+++ b/kernel/model/index_fix.go
@@ -48,6 +48,11 @@ var (
// checkIndex 自动校验数据库索引,仅在数据同步执行完成后执行一次。
func checkIndex() {
checkIndexOnce.Do(func() {
+ if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container || util.ContainerHarmony == util.Container {
+ // 移动端不执行校验 https://ld246.com/article/1734939896061
+ return
+ }
+
logging.LogInfof("start checking index...")
removeDuplicateDatabaseIndex()