lib/db: Use different defaults for larger databases (fixes #5966) (#5967)

This introduces a better set of defaults for large databases. I've
experimentally determined that it results in much better throughput in a
couple of scenarios with large databases, but I can't give any
guarantees the values are always optimal. They're probably no worse than
the defaults though.
This commit is contained in:
Jakob Borg authored and Simon Frei committed 2019-08-20 09:41:41 +02:00
1 parent e910acdc17
commit 90b70c7a16
7 files changed
+174 -18

No files matched your search

+2 -2
View File
@@ -122,6 +122,6 @@ func copyFile(src, dst string) error {
return nil
}
func OpenGoleveldb(path string) (*db.Lowlevel, error) {
return db.Open(path)
func OpenGoleveldb(path string, tuning config.Tuning) (*db.Lowlevel, error) {
return db.Open(path, db.Tuning(tuning))
}