提交 2f5dfd89 authored 作者: Thomas Mueller's avatar Thomas Mueller

MAX_MEMORY_ROWS: use a system property

上级 c58e1d37
......@@ -225,11 +225,6 @@ public class Constants {
*/
public static final long DEFAULT_MAX_LOG_SIZE = 16 * 1024 * 1024;
/**
* The default maximum number of rows to be kept in memory in a result set.
*/
public static final int DEFAULT_MAX_MEMORY_ROWS = 10000;
/**
* The default value for the MAX_MEMORY_UNDO setting.
*/
......
......@@ -132,7 +132,7 @@ public class Database implements DataHandler {
private boolean readOnly;
private int writeDelay = Constants.DEFAULT_WRITE_DELAY;
private DatabaseEventListener eventListener;
private int maxMemoryRows = Constants.DEFAULT_MAX_MEMORY_ROWS;
private int maxMemoryRows = SysProperties.MAX_MEMORY_ROWS;
private int maxMemoryUndo = Constants.DEFAULT_MAX_MEMORY_UNDO;
private int lockMode = Constants.DEFAULT_LOCK_MODE;
private int maxLengthInplaceLob;
......
......@@ -251,6 +251,13 @@ public class SysProperties {
public static final int MAX_RECONNECT =
Utils.getProperty("h2.maxReconnect", 3);
/**
* System property <code>h2.maxMemoryRows</code> (default: 10000).<br />
* The default maximum number of rows to be kept in memory in a result set.
*/
public static final int MAX_MEMORY_ROWS =
Utils.getProperty("h2.maxMemoryRows", 10000);
/**
* System property <code>h2.maxTraceDataLength</code>
* (default: 65535).<br />
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论