From: Matt Joiner Date: Thu, 6 May 2021 05:25:01 +0000 (+1000) Subject: Don't set the page size by default X-Git-Tag: v1.28.0~18^2~1 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=8dcc52ccf9212f7df005cdd14f334466c3ad171a;p=btrtrc.git Don't set the page size by default --- diff --git a/storage/sqlite/sqlite-storage.go b/storage/sqlite/sqlite-storage.go index f6854791..ed9aefb3 100644 --- a/storage/sqlite/sqlite-storage.go +++ b/storage/sqlite/sqlite-storage.go @@ -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 {