🎨 Manually optimize the data index to reduce space usage and improve performance https://github.com/siyuan-note/siyuan/issues/15663

This commit is contained in:
Daniel 2025-08-24 15:48:22 +08:00
parent 1f3c3a53b4
commit 7e6752a8fb
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 20 additions and 0 deletions

View file

@ -35,6 +35,20 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func vacuumDataIndex(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
model.VacuumDataIndex()
}
func rebuildDataIndex(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
model.FullReindex()
}
func addMicrosoftDefenderExclusion(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)