Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
e0851bbf
提交
e0851bbf
authored
5月 13, 2013
作者:
noelgrandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Issue 459: Improve LOB documentation
上级
48e87d3b
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
5 行删除
+14
-5
help.csv
h2/src/docsrc/help/help.csv
+7
-3
advanced.html
h2/src/docsrc/html/advanced.html
+4
-1
changelog.html
h2/src/docsrc/html/changelog.html
+1
-0
Constants.java
h2/src/main/org/h2/engine/Constants.java
+2
-1
没有找到文件。
h2/src/docsrc/help/help.csv
浏览文件 @
e0851bbf
...
...
@@ -1268,9 +1268,13 @@ SET LOCK_TIMEOUT 1000
"Commands (Other)","SET MAX_LENGTH_INPLACE_LOB","
SET MAX_LENGTH_INPLACE_LOB int
","
Sets the maximum size of an in-place LOB object. LOB objects larger that this
size are stored in a separate file, otherwise stored directly in the database
(in-place). The default max size is 1024.
Sets the maximum size of an in-place LOB object.
If the 'h2.lobInDatabase' property is true, this is the maximum length of an LOB that is stored with the record itself,
and the default value is 128.
If the 'h2.lobInDatabase' property is false, this is the maximum length of an LOB that is stored in the database file,
and the default value is 4096.
This setting has no effect for in-memory databases.
Admin rights are required to execute this command, as it affects all connections.
...
...
h2/src/docsrc/html/advanced.html
浏览文件 @
e0851bbf
...
...
@@ -130,7 +130,7 @@ on the client side.
<h3>
When to use CLOB/BLOB
</h3>
<p>
This database stores large LOB (CLOB and BLOB) objects as separate files
.
By default, this database stores large LOB (CLOB and BLOB) objects separate from the main table data
.
Small LOB objects are stored in-place, the threshold can be set using
<a
href=
"grammar.html#set_max_length_inplace_lob"
class=
"notranslate"
>
MAX_LENGTH_INPLACE_LOB
</a>
,
but there is still an overhead to use CLOB/BLOB. Because of this, BLOB and CLOB
...
...
@@ -138,6 +138,9 @@ should never be used for columns with a maximum size below about 200 bytes.
The best threshold depends on the use case; reading in-place objects is faster
than reading from separate files, but slows down the performance of operations
that don't involve this column.
<p>
It is possible to configure the database to store LOB objects outside the database file,
see the
<a
href=
"../javadoc/org/h2/constant/SysProperties.html#h2.lobInDatabase"
>
h2.lobInDatase
</a>
property.
</p>
<h3>
Large Object Compression
</h3>
...
...
h2/src/docsrc/html/changelog.html
浏览文件 @
e0851bbf
...
...
@@ -40,6 +40,7 @@ Change Log
</li><li>
Issue 274: Sybase/MSSQLServer compatibility - support index clause e.g. "select * from test (index table1_index)"
</li><li>
Fix bug in optimising SELECT * FROM A WHERE X=1 OR X=2 OR X=3 into SELECT * FROM A WHERE X IN (1,2,3)
</li><li>
Issue 442: groovy patch for SourceCompiler (function ALIAS)
</li><li>
Issue 459: Improve LOB documentation
</li></ul>
<h2>
Version 1.3.171 (2013-03-17)
</h2>
...
...
h2/src/main/org/h2/engine/Constants.java
浏览文件 @
e0851bbf
...
...
@@ -197,13 +197,14 @@ public class Constants {
/**
* The default maximum length of an LOB that is stored in the database file.
* Only used if h2.lobInDatabase==false.
*/
public
static
final
int
DEFAULT_MAX_LENGTH_INPLACE_LOB
=
4096
;
/**
* The default maximum length of an LOB that is stored with the record itself,
* and not in a separate place.
* Only used if h2.lobInDatabase
is enabled
.
* Only used if h2.lobInDatabase
==true
.
*/
public
static
final
int
DEFAULT_MAX_LENGTH_INPLACE_LOB2
=
128
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论