提交 15eef24e authored 作者: Thomas Mueller's avatar Thomas Mueller

Writing to the trace file is now faster, specially with the debug level.

上级 fb4be198
...@@ -17,7 +17,8 @@ Change Log ...@@ -17,7 +17,8 @@ Change Log
<h1>Change Log</h1> <h1>Change Log</h1>
<h2>Next Version (unreleased)</h2> <h2>Next Version (unreleased)</h2>
<ul><li>The database option "defrag_always=true" did not work with the MVStore. <ul><li>Writing to the trace file is now faster, specially with the debug level.
</li><li>The database option "defrag_always=true" did not work with the MVStore.
</li><li>The JDBC escape syntax {ts 'value'} did not interpret the value as a timestamp. </li><li>The JDBC escape syntax {ts 'value'} did not interpret the value as a timestamp.
The same for {d 'value'} (for date) and {t 'value'} (for time). The same for {d 'value'} (for date) and {t 'value'} (for time).
Thanks to Lukas Eder for reporting the issue. Thanks to Lukas Eder for reporting the issue.
......
...@@ -76,7 +76,7 @@ public class TraceSystem implements TraceWriter { ...@@ -76,7 +76,7 @@ public class TraceSystem implements TraceWriter {
*/ */
private static final int DEFAULT_MAX_FILE_SIZE = 64 * 1024 * 1024; private static final int DEFAULT_MAX_FILE_SIZE = 64 * 1024 * 1024;
private static final int CHECK_SIZE_EACH_WRITES = 128; private static final int CHECK_SIZE_EACH_WRITES = 4096;
private int levelSystemOut = DEFAULT_TRACE_LEVEL_SYSTEM_OUT; private int levelSystemOut = DEFAULT_TRACE_LEVEL_SYSTEM_OUT;
private int levelFile = DEFAULT_TRACE_LEVEL_FILE; private int levelFile = DEFAULT_TRACE_LEVEL_FILE;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论