fix(boltdb): change some options to increase performance BE-12002 (#848)

release/2.32
andres-portainer 2025-07-02 18:17:19 -03:00 committed by GitHub
parent 5c6b53922a
commit 097b125e3a
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ func (connection *DbConnection) Open() error {
db, err := bolt.Open(databasePath, 0600, &bolt.Options{
Timeout: 1 * time.Second,
InitialMmapSize: connection.InitialMmapSize,
FreelistType: bolt.FreelistMapType,
NoFreelistSync: true,
})
if err != nil {
return err