提交 c58e1d37 authored 作者: Thomas Mueller's avatar Thomas Mueller

MAX_MEMORY_ROWS: use a system property

上级 fec189c4
...@@ -470,7 +470,7 @@ public class MVTable extends TableBase { ...@@ -470,7 +470,7 @@ public class MVTable extends TableBase {
long i = 0; long i = 0;
Store store = session.getDatabase().getMvStore(); Store store = session.getDatabase().getMvStore();
int bufferSize = Constants.DEFAULT_MAX_MEMORY_ROWS / 2; int bufferSize = SysProperties.MAX_MEMORY_ROWS / 2;
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);
...@@ -511,7 +511,7 @@ public class MVTable extends TableBase { ...@@ -511,7 +511,7 @@ public class MVTable 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(total, Constants.DEFAULT_MAX_MEMORY_ROWS); int bufferSize = (int) Math.min(total, 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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论