1
0
Fork 0
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:
Mikhail Rakhmanov 2025-03-12 13:05:08 +01:00
parent c7a22a2cbd
commit 30a32ad32b
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
2 changed files with 4 additions and 4 deletions

View file

@ -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 {

View file

@ -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,
}
}