提交 6fa15ff8 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).
上级 4382be61
...@@ -391,8 +391,11 @@ public class TestMVTableEngine extends TestBase { ...@@ -391,8 +391,11 @@ public class TestMVTableEngine extends TestBase {
rs = stat.executeQuery("explain analyze select * from test"); rs = stat.executeQuery("explain analyze select * from test");
rs.next(); rs.next();
String plan = rs.getString(1); String plan = rs.getString(1);
// expect about 249 reads // expect about 1000 reads
assertTrue(plan, plan.contains("reads: 2")); String readCount = plan.substring(plan.indexOf("reads: "));
readCount = readCount.substring("reads: ".length(), readCount.indexOf('\n'));
int rc = Integer.parseInt(readCount);
assertTrue(plan, rc >= 1000 && rc <= 1200);
conn.close(); conn.close();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论