Re: Local and remote
"Leo Mekenkamp" <[email protected]>
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <[email protected]> |
> Hi
>
> normally we use remote to open database
>
> ExternalDatabase.openDatabase("ozonedb:remote://localhost:3333")
>
> I don't know which case that we need local
>
> ExternalDatabase db =
> ExternalDatabase.openDatabase("ozonedb:local://dbDir")
When you use the local variant the server is started within the same jvm
as your application. The remote variant connects to an already running
server in another jvm (can also be on another machine). The remote variant
must be used when you need multiple clients to connect to 1 database.
> is it faster than remote?
Performance is usually about the same. Depending on network, type of
computers, multi-threaded vs. single-threaded etc., remote may very well
be faster.
Cheers,
Leo Mekenkamp
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click