We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd0af9d commit 892aad0Copy full SHA for 892aad0
db.go
@@ -1259,6 +1259,12 @@ type Options struct {
1259
// If <=0, the initial map size is 0.
1260
// If initialMmapSize is smaller than the previous database size,
1261
// it takes no effect.
1262
+ //
1263
+ // Note: On Windows, due to platform limitations, the database file size
1264
+ // will be immediately resized to match `InitialMmapSize` (aligned to page size)
1265
+ // when the DB is opened. On non-Windows platforms, the file size will grow
1266
+ // dynamically based on the actual amount of written data, regardless of `InitialMmapSize`.
1267
+ // Refer to https://github.com/etcd-io/bbolt/issues/378#issuecomment-1378121966.
1268
InitialMmapSize int
1269
1270
// PageSize overrides the default OS page size.
0 commit comments