提交 9d78318a authored 作者: Thomas Mueller's avatar Thomas Mueller

MAX_MEMORY_ROWS: use a system property

上级 2f5dfd89
...@@ -265,7 +265,7 @@ public class RegularTable extends TableBase { ...@@ -265,7 +265,7 @@ public class RegularTable extends TableBase {
long total = remaining; long total = remaining;
Cursor cursor = scan.find(session, null, null); Cursor cursor = scan.find(session, null, null);
long i = 0; long i = 0;
int bufferSize = (int) Math.min(rowCount, Constants.DEFAULT_MAX_MEMORY_ROWS); int bufferSize = (int) Math.min(rowCount, SysProperties.MAX_MEMORY_ROWS);
ArrayList<Row> buffer = New.arrayList(bufferSize); ArrayList<Row> buffer = New.arrayList(bufferSize);
String n = getName() + ":" + index.getName(); String n = getName() + ":" + index.getName();
int t = MathUtils.convertLongToInt(total); int t = MathUtils.convertLongToInt(total);
......
...@@ -379,7 +379,10 @@ java org.h2.test.TestAll timer ...@@ -379,7 +379,10 @@ java org.h2.test.TestAll timer
SelfDestructor.startCountdown(4 * 60); SelfDestructor.startCountdown(4 * 60);
long time = System.currentTimeMillis(); long time = System.currentTimeMillis();
printSystemInfo(); printSystemInfo();
System.setProperty("h2.maxMemoryRowsDistinct", "128");
// use lower values, to better test those cases,
// and to speed up the tests (for delays)
System.setProperty("h2.maxMemoryRows", "128");
System.setProperty("h2.check2", "true"); System.setProperty("h2.check2", "true");
System.setProperty("h2.delayWrongPasswordMin", "0"); System.setProperty("h2.delayWrongPasswordMin", "0");
System.setProperty("h2.delayWrongPasswordMax", "0"); System.setProperty("h2.delayWrongPasswordMax", "0");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论