提交 4382be61 authored 作者: Thomas Mueller's avatar Thomas Mueller

The database URL setting PAGE_SIZE setting is now also used for the MVStore.…

The database URL setting PAGE_SIZE setting is now also used for the MVStore. MVStore: the default page split size for persistent stores is now 4096 (it was 16 KB so far). This should reduce the database file size for most situations (in some cases, less than half the size of the previous version).
上级 5375ed8d
......@@ -2714,6 +2714,10 @@ public class Database implements DataHandler {
return fileEncryptionKey;
}
public int getPageSize() {
return pageSize;
}
@Override
public JavaObjectSerializer getJavaObjectSerializer() {
initJavaObjectSerializer();
......
......@@ -60,6 +60,7 @@ public class MVTableEngine implements TableEngine {
String fileName = dbPath + Constants.SUFFIX_MV_FILE;
MVStoreTool.compactCleanUp(fileName);
builder.fileName(fileName);
builder.pageSplitSize(db.getPageSize());
if (db.isReadOnly()) {
builder.readOnly();
} else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论