mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 02:04:20 +01:00
🎨 调整数据库缓存
This commit is contained in:
parent
6a5617dcc1
commit
19f44148d4
13 changed files with 17 additions and 22 deletions
8
kernel/cache/ial.go
vendored
8
kernel/cache/ial.go
vendored
|
|
@ -24,8 +24,8 @@ import (
|
|||
)
|
||||
|
||||
var docIALCache, _ = ristretto.NewCache(&ristretto.Config{
|
||||
NumCounters: 200000,
|
||||
MaxCost: 1000 * 1000 * 32,
|
||||
NumCounters: 10240,
|
||||
MaxCost: 1024,
|
||||
BufferItems: 64,
|
||||
})
|
||||
|
||||
|
|
@ -55,8 +55,8 @@ func ClearDocsIAL() {
|
|||
}
|
||||
|
||||
var blockIALCache, _ = ristretto.NewCache(&ristretto.Config{
|
||||
NumCounters: 800000,
|
||||
MaxCost: 1000 * 1000 * 64,
|
||||
NumCounters: 10240,
|
||||
MaxCost: 1024,
|
||||
BufferItems: 64,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue