> Hi, i just wonder how to start in the mixed mode, will that mode
> affect the performance comparing to the embedded mode? Thanks.
The embedded connections are as fast as if the database is used in
just the embedded mode, while the remote (client/server) connections
are a bit slower. See also
http://www.h2database.com/html/performance.html (compare H2 Embedded
with H2 Client/Server).
Regards,
Thomas
> if it affects the performance when the port is always listening in my application.
No, it doesn't affect performance.
> 1.0.71 version.How could mixed mode work?
'Mixed mode' can mean two things. One is: start a server manually and
then connect to it. See also
http://www.h2database.com/html/features.html#connection_modes - this
works since a long time.
The feature AUTO_SERVER is quite new and requires version 1.0.79
(2008-09-26) or newer. If it works with an older version that would be
strange. In fact it should throw an exception, except if you also use
;IGNORE_UNKNOWN_SETTINGS=TRUE (in which case AUTO_SERVER is simply
ignored).
Regards,
Thomas
> SET AUTO_SERVER = mixed mode?
No. 'Mixed mode' can mean two things:
(A) start a server manually and then connect to it.
(B) AUTO_SERVER=TRUE in which case the server is started automatically.
Regards,
Thomas
> 1)Auto_server provides a new access method to embedded mode since in
> old embedded mode only one process could possible access the db.
> 2)Mixed mode means starting a server listening on a port along with a
> embedded mode enable, while remote access to the db is
> possible.Meanwhile,the embedded mode still working as fast as without
> server listening.
Actually Auto_server is also a mixed mode. 'Mixed mode' can mean two things:
(A) start a server manually and then connect to it.
(B) AUTO_SERVER=TRUE in which case the server is started automatically.
Mixed mode only means: "one application used the database in embedded
mode, while another in server mode, at the same time".
There are two ways to start the server: one is manually using the API
at http://www.h2database.com/javadoc/org/h2/tools/Server.html - the
other way to start the server (if it is not already running) is by
appending ;AUTO_SERVER=TRUE to the database URL.
Regards,
Thomas