X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9EC493A19FC for ; Sun, 16 Jan 2005 16:41:59 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 50801-07 for ; Sun, 16 Jan 2005 16:41:50 +0000 (GMT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by svr1.postgresql.org (Postfix) with ESMTP id 2EF4F3A18CE for ; Sun, 16 Jan 2005 16:41:47 +0000 (GMT) Received: from frontend2.messagingengine.com (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 98A94C4F5C5 for ; Sun, 16 Jan 2005 11:41:46 -0500 (EST) X-Sasl-enc: zM0B9/NjddIeLPWkRL2zSw 1105893705 Received: from [192.168.5.110] (unknown [194.80.67.65]) by www.fastmail.fm (Postfix) with ESMTP id CC6C0570147 for ; Sun, 16 Jan 2005 11:41:45 -0500 (EST) Message-ID: <41EA994F.3000207@squarepark.com> Date: Sun, 16 Jan 2005 16:41:51 +0000 From: Jasper Potts Organization: SquarePark Technologies User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Embedding Postgres in Java Application References: <41EA9455.9000301@squarepark.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200501/157 X-Sequence-Number: 12037 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 > >