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

The default time to compact a database when closing (system property…

The default time to compact a database when closing (system property h2.maxCompactTime) is now 0.2 seconds instead of 1 second.
上级 5bbd3964
...@@ -363,10 +363,10 @@ public class SysProperties { ...@@ -363,10 +363,10 @@ public class SysProperties {
public static final int MAX_COMPACT_COUNT = getIntSetting("h2.maxCompactCount", Integer.MAX_VALUE); public static final int MAX_COMPACT_COUNT = getIntSetting("h2.maxCompactCount", Integer.MAX_VALUE);
/** /**
* System property <code>h2.maxCompactTime</code> (default: 1000).<br /> * System property <code>h2.maxCompactTime</code> (default: 200).<br />
* The maximum time in milliseconds used to compact a database when closing. * The maximum time in milliseconds used to compact a database when closing.
*/ */
public static final int MAX_COMPACT_TIME = getIntSetting("h2.maxCompactTime", 1000); public static final int MAX_COMPACT_TIME = getIntSetting("h2.maxCompactTime", 200);
/** /**
* System property <code>h2.maxFileRetry</code> (default: 16).<br /> * System property <code>h2.maxFileRetry</code> (default: 16).<br />
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论