mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
fix(boltdb): change some options to increase performance BE-12002 (#848)
This commit is contained in:
parent
5c6b53922a
commit
097b125e3a
1 changed files with 2 additions and 0 deletions
|
@ -138,6 +138,8 @@ func (connection *DbConnection) Open() error {
|
||||||
db, err := bolt.Open(databasePath, 0600, &bolt.Options{
|
db, err := bolt.Open(databasePath, 0600, &bolt.Options{
|
||||||
Timeout: 1 * time.Second,
|
Timeout: 1 * time.Second,
|
||||||
InitialMmapSize: connection.InitialMmapSize,
|
InitialMmapSize: connection.InitialMmapSize,
|
||||||
|
FreelistType: bolt.FreelistMapType,
|
||||||
|
NoFreelistSync: true,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue