提交 3b50a2de authored 作者: Thomas Mueller's avatar Thomas Mueller

Database files now grows in 1 MB blocks (and at least 20% at a time).

上级 3eb81500
...@@ -122,7 +122,7 @@ public class PageStore implements CacheWriter { ...@@ -122,7 +122,7 @@ public class PageStore implements CacheWriter {
private static final int PAGE_ID_META_ROOT = 4; private static final int PAGE_ID_META_ROOT = 4;
private static final int MIN_PAGE_COUNT = 6; private static final int MIN_PAGE_COUNT = 6;
private static final int INCREMENT_KB = 1024; private static final int INCREMENT_KB = 1024;
private static final int INCREMENT_PERCENT_MIN = 2; private static final int INCREMENT_PERCENT_MIN = 20;
private static final int READ_VERSION = 3; private static final int READ_VERSION = 3;
private static final int WRITE_VERSION = 3; private static final int WRITE_VERSION = 3;
private static final int META_TYPE_DATA_INDEX = 0; private static final int META_TYPE_DATA_INDEX = 0;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论