Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
bed1320d
提交
bed1320d
authored
2月 27, 2015
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation
上级
337d3aa4
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
24 行增加
和
18 行删除
+24
-18
advanced.html
h2/src/docsrc/html/advanced.html
+14
-13
changelog.html
h2/src/docsrc/html/changelog.html
+10
-5
没有找到文件。
h2/src/docsrc/html/advanced.html
浏览文件 @
bed1320d
...
@@ -219,12 +219,13 @@ See the <a href="grammar.html">Grammar</a> for details.
...
@@ -219,12 +219,13 @@ See the <a href="grammar.html">Grammar</a> for details.
</p>
</p>
<p>
<p>
Transaction isolation is provided for all data manipulation language (DML) statements.
Transaction isolation is provided for all data manipulation language (DML) statements.
<p>
</p>
</p>
<p>
Please note MVCC is enabled in version 1.4.x by default, when using the MVStore.
Please note MVCC is enabled in version 1.4.x by default, when using the MVStore.
In this case, table level locking is not used.
In this case, table level locking is not used.
Instead, rows are locked for update, and read committed is used in all cases
Instead, rows are locked for update, and read committed is used in all cases
(changing the isolation level has no effect).
(changing the isolation level has no effect).
</p>
<p>
<p>
This database supports the following transaction isolation levels:
This database supports the following transaction isolation levels:
</p>
</p>
...
@@ -1435,33 +1436,33 @@ java -cp "$dir/h2.jar:jts-1.13.jar:$H2DRIVERS:$CLASSPATH" org.h2.tools.Console "
...
@@ -1435,33 +1436,33 @@ java -cp "$dir/h2.jar:jts-1.13.jar:$H2DRIVERS:$CLASSPATH" org.h2.tools.Console "
Here is an example SQL script to create a table with a spatial column and index:
Here is an example SQL script to create a table with a spatial column and index:
</p>
</p>
<pre>
<pre>
CREATE TABLE GEOTABLE(GID SERIAL, THE_GEOM GEOMETRY);
CREATE TABLE GEO
_
TABLE(GID SERIAL, THE_GEOM GEOMETRY);
INSERT INTO GEOTABLE(THE_GEOM) VALUES
INSERT INTO GEO
_
TABLE(THE_GEOM) VALUES
('POINT(500 505)'),
('POINT(500 505)'),
('LINESTRING(550 551, 525 512, 565 566)'),
('LINESTRING(550 551, 525 512, 565 566)'),
('POLYGON ((550 521, 580 540, 570 564, 512 566, 550 521))');
('POLYGON ((550 521, 580 540, 570 564, 512 566, 550 521))');
CREATE SPATIAL INDEX GEO
TABLE_SPATIALINDEX ON GEO
TABLE(THE_GEOM);
CREATE SPATIAL INDEX GEO
_TABLE_SPATIAL_INDEX ON GEO_
TABLE(THE_GEOM);
</pre>
</pre>
<p>
<p>
To query the table using geometry envelope intersection,
To query the table using geometry envelope intersection,
use the operation
<code>
&&
</code>
, as in PostGIS:
use the operation
<code>
&&
</code>
, as in PostGIS:
</p>
</p>
<pre>
<pre>
SELECT * FROM GEO
TABLE
SELECT * FROM GEO
_TABLE
WHERE THE_GEOM
&&
'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))';
WHERE THE_GEOM
&&
'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))';
</pre>
</pre>
<p>
<p>
You can verify that the spatial index is used using the "explain plan" feature:
You can verify that the spatial index is used using the "explain plan" feature:
</p>
</p>
<pre>
<pre>
EXPLAIN SELECT * FROM GEO
TABLE
EXPLAIN SELECT * FROM GEO
_TABLE
WHERE THE_GEOM
&&
'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))';
WHERE THE_GEOM
&&
'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))';
-- Result
-- Result
SELECT
SELECT
GEOTABLE.GID,
GEO
_
TABLE.GID,
GEOTABLE.THE_GEOM
GEO
_
TABLE.THE_GEOM
FROM PUBLIC.GEOTABLE
FROM PUBLIC.GEO
_
TABLE
/* PUBLIC.GEO
TABLE_SPATIALINDEX:
/* PUBLIC.GEO
_TABLE_SPATIAL_INDEX:
THE_GEOM
&&
'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))' */
THE_GEOM
&&
'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))' */
WHERE INTERSECTS(THE_GEOM,
WHERE INTERSECTS(THE_GEOM,
'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))')
'POLYGON ((490 490, 536 490, 536 515, 490 515, 490 490))')
...
...
h2/src/docsrc/html/changelog.html
浏览文件 @
bed1320d
...
@@ -17,7 +17,12 @@ Change Log
...
@@ -17,7 +17,12 @@ Change Log
<h1>
Change Log
</h1>
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
MVStore: the maximum cache size was artificially limited to 2 GB
<ul><li>
The Servlet API 3.0.1 is now used, instead of 2.4.
</li><li>
MVStore: old chunks no longer removed in append-only mode.
</li><li>
MVStore: the cache for page references could grow far too big, resulting in out of memory in some cases.
</li><li>
MVStore: orphaned lob objects were not correctly removed in some cases,
making the database grow unnecessarily.
</li><li>
MVStore: the maximum cache size was artificially limited to 2 GB
(due to an integer overflow).
(due to an integer overflow).
</li><li>
MVStore / TransactionStore: concurrent updates could result in a
</li><li>
MVStore / TransactionStore: concurrent updates could result in a
"Too many open transactions" exception.
"Too many open transactions" exception.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论