提交 4485dc9f authored 作者: Thomas Mueller's avatar Thomas Mueller

Documentation.

上级 245c5de4
......@@ -604,9 +604,10 @@ In this case, the database URL must include a name. Example: <code>jdbc:h2:mem:d
Accessing the same database using this URL only works within the same virtual machine and
class loader environment.
</p><p>
In-memory can be accessed remotely
(or from multiple processes in the same machine) using TCP/IP or SSL/TLS.
An example database URL is: <code>jdbc:h2:tcp://localhost/mem:db1</code>.
To access an in-memory database from another process or from another computer,
you need to start a TCP server in the same process as the in-memory database was created.
The other processes then need to access the database over TCP/IP or SSL/TLS,
using a database URL such as: <code>jdbc:h2:tcp://localhost/mem:db1</code>.
</p><p>
By default, closing the last connection to a database closes the database.
For an in-memory database, this means the content is lost.
......
......@@ -668,8 +668,8 @@ So this index contains the following data:
<p>
When the database uses an index to query the data, it searches the index for the given data,
and (if required) reads the remaining columns in the main data table (retrieved using the row id).
An index on city, name, and first name allows to quickly search for rows when the city, name, and first name are known.
If only the city and name, or only the city is known, then the index is also used.
An index on city, name, and first name (multi-column index) allows to quickly search for rows when the city, name, and first name are known.
If only the city and name, or only the city is known, then this index is also used (so creating an additional index on just the city is not needed).
This index is also used when reading all rows, sorted by the indexed columns.
However, if only the first name is known, then this index is not used:
</p>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论