mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-10 18:10:49 +09:00
GO-5262 Update prealloc
This commit is contained in:
parent
c7a22a2cbd
commit
30a32ad32b
2 changed files with 4 additions and 4 deletions
|
@ -202,7 +202,7 @@ func (s *dsObjectStore) setDefaultConfig() {
|
|||
}
|
||||
s.anyStoreConfig.SQLiteConnectionOptions = maps.Clone(s.anyStoreConfig.SQLiteConnectionOptions)
|
||||
s.anyStoreConfig.SQLiteConnectionOptions["synchronous"] = "off"
|
||||
s.anyStoreConfig.SyncPoolElementMaxSize = 1 << 26
|
||||
s.anyStoreConfig.SQLiteGlobalPageCachePreallocateSizeBytes = 1 << 26
|
||||
}
|
||||
|
||||
func ensureDirExists(dir string) error {
|
||||
|
|
|
@ -138,8 +138,8 @@ func (s *storageService) anyStoreConfig() *anystore.Config {
|
|||
}
|
||||
opts["synchronous"] = "off"
|
||||
return &anystore.Config{
|
||||
ReadConnections: 4,
|
||||
SQLiteConnectionOptions: opts,
|
||||
SyncPoolElementMaxSize: 1 << 26,
|
||||
ReadConnections: 4,
|
||||
SQLiteConnectionOptions: opts,
|
||||
SQLiteGlobalPageCachePreallocateSizeBytes: 1 << 26,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue