An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Add index `idx_attributes_block_id` https://ld246.com/article/1742827508465
Daniel37d358cd5225
diff --git a/kernel/sql/database.go b/kernel/sql/database.goindex 74e82b9250..3325366db7 100644--- a/kernel/sql/database.go+++ b/kernel/sql/database.go@@ -197,6 +197,10 @@ func initDBTables() {if err != nil {logging.LogFatalf(logging.ExitCodeReadOnlyDatabase, "create table [attributes] failed: %s", err)}+ _, err = db.Exec("CREATE INDEX idx_attributes_block_id ON attributes(block_id)")+ if err != nil {+ logging.LogFatalf(logging.ExitCodeReadOnlyDatabase, "create index [idx_attributes_block_id] failed: %s", err)+ }_, err = db.Exec("CREATE INDEX idx_attributes_root_id ON attributes(root_id)")if err != nil {logging.LogFatalf(logging.ExitCodeReadOnlyDatabase, "create index [idx_attributes_root_id] failed: %s", err)