Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
f460a407
提交
f460a407
authored
14 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation.
上级
587c4750
master
noel-pr1
plus33-master
pr/267
stumc-Issue#576
version-1.4.198
version-1.4.197
version-1.4.196
version-1.4.195
version-1.4.194
version-1.4.193
version-1.4.192
version-1.4.191
version-1.4.190
version-1.4.188
version-1.4.187
version-1.4.186
version-1.4.185
version-1.4.184
version-1.4.183
version-1.4.182
version-1.4.181
version-1.4.178
version-1.4.177
version-1.3
version-1.2
version-1.1
version-1.0
无相关合并请求
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
2 行删除
+16
-2
advanced.html
h2/src/docsrc/html/advanced.html
+9
-0
changelog.html
h2/src/docsrc/html/changelog.html
+1
-0
performance.html
h2/src/docsrc/html/performance.html
+6
-2
没有找到文件。
h2/src/docsrc/html/advanced.html
浏览文件 @
f460a407
...
...
@@ -468,6 +468,15 @@ To uninstall the service, double click on <code>5_uninstall_service.bat</code>.
If successful, a command prompt window will pop up and disappear immediately. If not, a message will appear.
</p>
<h3>
Additional JDBC drivers
</h3>
<p>
To use other databases (for example MySQL), the location of the JDBC drivers of those databases need to be
added to the environment variables
<code>
H2DRIVERS
</code>
or
<code>
CLASSPATH
</code>
before
installing the service. Multiple drivers can be set; each entry needs to be separated with a
<code>
;
</code>
(Windows) or
<code>
:
</code>
(other operating systems). Spaces in the path names are supported.
The settings must not be quoted.
</p>
<h2
id=
"odbc_driver"
>
ODBC Driver
</h2>
<p>
This database does not come with its own ODBC driver at this time,
...
...
This diff is collapsed.
Click to expand it.
h2/src/docsrc/html/changelog.html
浏览文件 @
f460a407
...
...
@@ -23,6 +23,7 @@ Change Log
</li><li>
Memory mapped file system: improved error messages if there is a problem.
</li><li>
The Lucene fulltext search did not work well
when using special file systems such as split or nioMapped.
</li><li>
The memory mapped file system (nioMapped: file prefix) couldn't seek past the file length.
</li><li>
Some file system operations did not work with stacked file systems
(for example split and nioMapped). This also affected the DeleteDbFiles tool.
</li><li>
New experimental query cache.
...
...
This diff is collapsed.
Click to expand it.
h2/src/docsrc/html/performance.html
浏览文件 @
f460a407
...
...
@@ -354,17 +354,21 @@ if opening the database took more than a few seconds.
<p>
The
<code>
ConvertTraceFile
</code>
tool generates SQL statement statistics at the end of the SQL script file.
The format used is similar to the profiling data generated when using
<code>
java -Xrunhprof
</code>
.
For this to work, the trace level needs to be 2 or higher (
<code>
TRACE_LEVEL_FILE=2
</code>
).
The easiest way to set the trace level is to append the setting to the database URL, for example:
<code>
jdbc:h2:~/test;TRACE_LEVEL_FILE=2
</code>
or
<code>
jdbc:h2:tcp://localhost/~/test;TRACE_LEVEL_FILE=2
</code>
.
As an example, execute the the following script using the H2 Console:
</p>
<pre>
SET TRACE_LEVEL_FILE
3
;
SET TRACE_LEVEL_FILE
2
;
DROP TABLE IF EXISTS TEST;
CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR(255));
@LOOP 1000 INSERT INTO TEST VALUES(?, ?);
SET TRACE_LEVEL_FILE 0;
</pre>
<p>
Now convert the
<code>
.trace.db
</code>
file using the
<code>
ConvertTraceFile
</code>
tool:
After running the test case, convert the
<code>
.trace.db
</code>
file using the
<code>
ConvertTraceFile
</code>
tool.
The trace file is located in the same directory as the database file.
</p>
<pre>
java -cp h2*.jar org.h2.tools.ConvertTraceFile
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论