]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Don't set the page size by default
authorMatt Joiner <anacrolix@gmail.com>
Thu, 6 May 2021 05:25:01 +0000 (15:25 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 6 May 2021 05:25:01 +0000 (15:25 +1000)
storage/sqlite/sqlite-storage.go

index f6854791763f293fe586c8c5cd3f45979bcd3fb5..ed9aefb3077250d3e3594c0e05a24f1396ee50dc 100644 (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 {