Skip to content

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

:art: 改进移动文档性能 https://github.com/siyuan-note/siyuan/issues/7422

Liang Dingad4bbc6240ac
diff --git a/kernel/sql/cache.go b/kernel/sql/cache.go
index 1ff183824c..1901f5759a 100644
--- a/kernel/sql/cache.go
+++ b/kernel/sql/cache.go
@@ -17,7 +17,6 @@
package sql
import (
- "runtime/debug"
"time"
"github.com/88250/lute/ast"
@@ -46,7 +45,6 @@ var blockCache, _ = ristretto.NewCache(&ristretto.Config{
func ClearCache() {
blockCache.Clear()
- debug.FreeOSMemory()
}
func putBlockCache(block *Block) {
diff --git a/kernel/sql/database.go b/kernel/sql/database.go
index e019a8b74f..1933582bd0 100644
--- a/kernel/sql/database.go
+++ b/kernel/sql/database.go
@@ -820,10 +820,6 @@ func heading(node *ast.Node) *ast.Node {
return nil
}
-func DeleteBlockByIDs(tx *sql.Tx, ids []string) (err error) {
- return deleteBlocksByIDs(tx, ids)
-}
-
func deleteByBoxTx(tx *sql.Tx, box string) (err error) {
if err = deleteBlocksByBoxTx(tx, box); nil != err {
return