1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-18 21:09:40 +02:00

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

This commit is contained in:
andres-portainer 2025-07-02 18:17:19 -03:00 committed by GitHub
parent 5c6b53922a
commit 097b125e3a

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