Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
4c33d834
提交
4c33d834
authored
8月 25, 2009
作者:
buckyballs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Docs-Performance: JVM choice & Data Types
上级
9954f7e4
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
22 行增加
和
0 行删除
+22
-0
performance.html
h2/src/docsrc/html/performance.html
+22
-0
没有找到文件。
h2/src/docsrc/html/performance.html
浏览文件 @
4c33d834
...
...
@@ -384,6 +384,16 @@ following profiling data (results vary):
<br
/><a
name=
"database_performance_tuning"
></a>
<h2>
Database Performance Tuning
</h2>
<h3>
Use the Most Modern JVM
</h3>
<p>
Older JVMs are not as good at optimizing Java bytecode for quick execution. Upgrading to the latest version
of your JVM can provide a "free" boost to performance, particularly if your JVM is more than one major version
out of date. This is especially a problem on Apple systems, many of which still use the 1.5 JVM. When available,
the database engine also takes advantage of features in the latest Sun JREs to improve performance.
On the Windows platform, switching from the default Client JVM to the Server JVM
using the -server command-line option improves performance at the cost of a slight increase in start-up time.
</p>
<h3>
Virus Scanners
</h3>
<p>
Some virus scanners scan files every time they are accessed.
...
...
@@ -492,6 +502,18 @@ By default the cache size of H2 is quite small. Consider using a larger cache si
the second level soft reference cache. See also
<a
href=
"features.html#cache_settings"
>
Cache Settings
</a>
.
</p>
<h3>
Data Types
</h3>
<p>
Each data type has different storage and performance characteristics:
<ul><li>
The DECIMAL/NUMERIC type is slower and requires more storage than the REAL and DOUBLE types.
</li><li>
Text types are slower to read, write, and compare than numeric types and generally require more storage.
</li><li>
See
<a
href=
"advanced.html#large_objects"
>
Large Objects
</a>
for information on BINARY vs. BLOB and VARCHAR vs. CLOB performance.
</li><li>
Parsing and formatting takes longer for the TIME, DATE, and TIMESTAMP types than
the numeric types.
</li><li>
SMALLINT/TINYINT/BOOLEAN are not significantly smaller or faster to work with than INTEGER in most modes.
</li></ul>
</p>
<br
/><a
name=
"fast_import"
></a>
<h2>
Fast Database Import
</h2>
<p>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论