提交 2449cd70 authored 作者: Thomas Mueller's avatar Thomas Mueller

Serialized access mode documentation.

上级 4661db7b
......@@ -48,6 +48,8 @@ Advanced
Using the Recover Tool</a><br />
<a href="#file_locking_protocols">
File Locking Protocols</a><br />
<a href="#file_locking_serialized">
File Locking Method 'Serialized'</a><br />
<a href="#sql_injection">
Protection against SQL Injection</a><br />
<a href="#remote_access">
......@@ -841,6 +843,25 @@ share, two processes (running on different computers) could still open the same
database files, if they do not have a direct TCP/IP connection.
</p>
<h2 id="file_locking_serialized">File Locking Method 'Serialized'</h2>
<p>
This locking mode allows to open multiple connections to the same database.
The connections may be opened from multiple processes and from different computers.
When writing to the database, access is automatically synchronized internally. Write operations
are slower than when using the server mode, and concurrency is relatively poor.
The advantage of this mode is that there is no need to start a server.
</p>
<p>
To enable this feature, append <code>;FILE_LOCK=SERIALIZED</code> to the database URL.
</p>
<p>
This feature is relatively new. When using it for production, please ensure
your use case is well tested (if possible with automated test cases).
To simulate opening the same database from multiple computers within
a test case, also append <code>;OPEN_NEW=TRUE</code> to the database URL
(this feature is not needed in production).
</p>
<h2 id="sql_injection">Protection against SQL Injection</h2>
<h3>What is SQL Injection</h3>
<p>
......
......@@ -155,12 +155,16 @@ In addition to that, running out of memory should be avoided.
In older versions, OutOfMemory errors while using the database could corrupt a databases.
</p>
<p>
Areas that are not fully tested:
Some areas of this database are not fully tested.
When using one of those features for production, please ensure your use case
is well tested (if possible with automated test cases).
Those areas are:
</p>
<ul>
<li>Platforms other than Windows XP, Linux, Mac OS X, or JVMs other than Sun 1.5 or 1.6
</li><li>The features <code>AUTO_SERVER</code> and
<code>AUTO_RECONNECT</code>
</li><li>The file locking method 'Serialized'
</li><li>The MVCC (multi version concurrency) mode
</li><li>Cluster mode, 2-phase commit, savepoints
</li><li>24/7 operation
......
......@@ -628,4 +628,4 @@ galapagos pacific pastebin mystic posting mysticpaste reject prof tick freeing
sweden abbreviated xmx trede googlecode gustav standing hashes
decompressed expansion ziv abbreviated augments omitted gain
subtracted maxed logical lempel increases sibling impersonate proper remembers
moon centric adeptia workflows generalized bpchar binaries incremental
moon centric adeptia workflows generalized bpchar binaries incremental poor
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论