diff --git a/kernel/cache/ial.go b/kernel/cache/ial.go index 8c7a7152fdb..94cc23bfe43 100644 --- a/kernel/cache/ial.go +++ b/kernel/cache/ial.go @@ -24,8 +24,8 @@ import ( ) var docIALCache, _ = ristretto.NewCache(&ristretto.Config{ - NumCounters: 10240, - MaxCost: 1024, + NumCounters: 102400, + MaxCost: 10240, BufferItems: 64, }) @@ -55,8 +55,8 @@ func ClearDocsIAL() { } var blockIALCache, _ = ristretto.NewCache(&ristretto.Config{ - NumCounters: 10240, - MaxCost: 1024, + NumCounters: 102400, + MaxCost: 10240, BufferItems: 64, }) diff --git a/kernel/sql/cache.go b/kernel/sql/cache.go index cb3f84f2acf..6c106585bf5 100644 --- a/kernel/sql/cache.go +++ b/kernel/sql/cache.go @@ -38,8 +38,8 @@ func disableCache() { } var blockCache, _ = ristretto.NewCache(&ristretto.Config{ - NumCounters: 10240, - MaxCost: 1024, + NumCounters: 102400, + MaxCost: 10240, BufferItems: 64, })