2
0
mirror of synced 2025-02-23 06:08:07 +00:00

Don't set the page size by default

This commit is contained in:
Matt Joiner 2021-05-06 15:25:01 +10:00
parent 96574468c5
commit 8dcc52ccf9

View File

@ -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 {