Don't set the page size by default
This commit is contained in:
parent
96574468c5
commit
8dcc52ccf9
@ -299,7 +299,10 @@ func newOpenUri(opts NewConnOpts) string {
|
||||
func initDatabase(conn conn, opts InitDbOpts) (err error) {
|
||||
if !opts.DontInitSchema {
|
||||
if opts.PageSize == 0 {
|
||||
opts.PageSize = 1 << 14
|
||||
// There doesn't seem to be an optimal size. I did try with the standard chunk size, but
|
||||
// the difference is not convincing.
|
||||
|
||||
//opts.PageSize = 1 << 14
|
||||
}
|
||||
err = InitSchema(conn, opts.PageSize, !opts.NoTriggers)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user