mirror of https://github.com/portainer/portainer
fix(boltdb): change some options to increase performance BE-12002 (#848)
parent
5c6b53922a
commit
097b125e3a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue