pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jasper Potts <jasper@squarepark.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Embedding Postgres in Java Application
Date: Sun, 16 Jan 2005 16:41:51 +0000
Message-ID: <41EA994F.3000207@squarepark.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0501161128440.22550@leary.csoft.net>
References: <41EA9455.9000301@squarepark.com>
	<Pine.BSO.4.56.0501161128440.22550@leary.csoft.net>

I have tested most of the other options Hypersonic, Firebird, Daffodil 
and Postgres is much faster with large data sets and a lot better on 
memory usage. I have not tried Cloudscape as that was only very recently 
released under a license that would allow me to embed it. The query 
times with Postgres are in the 1-5sec range comparing to 30sec plus on 
the others. Hypersonic can be quick but only with the entire table in 
memory, gets nasty with outer joins.

Are there are any I haven't tried and should be looking at?

I am using Hibernate as a middle layer so porting should not be an issue.

Thanks

Jasper

Kris Jurka wrote:

>On Sun, 16 Jan 2005, Jasper Potts wrote:
>
>  
>
>>Is there a way of creating a JDBC connection to the db not over a 
>>network socket?
>>    
>>
>
>No.  Java does not have support for unix sockets.
>
>  
>
>>The other way is going to be to start/stop the database from Java by 
>>calling "pg_ctl start/stop". But that issues with this because of the 
>>windows restrictions that postgres can't be run as a user with admin 
>>privileges. Any Ideas?
>>
>>    
>>
>
>Even if Java did support unix sockets you would still have to start the 
>server running.  PostgreSQL is not designed to be an embedded database 
>(especially not by Java).  This doesn't seem like a great idea, perhaps 
>one of the Java databases would be more appropriate for this task?
>
>Kris Jurka
>  
>



view thread (6+ messages)  latest in thread

Message-ID: <41EA994F.3000207@squarepark.com>
Permalink:  ../41EA994F.3000207@squarepark.com/
Also on:    postgresql.org/message-id/41EA994F.3000207@squarepark.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: jasper@squarepark.com
  Subject: Re: Embedding Postgres in Java Application
  In-Reply-To: <41EA994F.3000207@squarepark.com>
  References: <41EA9455.9000301@squarepark.com> <Pine.BSO.4.56.0501161128440.22550@leary.csoft.net> <41EA994F.3000207@squarepark.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox