X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 62A269FA2C8 for ; Wed, 17 May 2006 16:00:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 91171-01 for ; Wed, 17 May 2006 16:00:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id DDA479FA2FA for ; Wed, 17 May 2006 16:00:04 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 1626456423; Wed, 17 May 2006 14:00:03 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Wed, 17 May 2006 14:00:01 -0500 Date: Wed, 17 May 2006 14:00:01 -0500 From: "Jim C. Nasby" To: kah_hang_ang@toray.com.my Cc: pgsql-jdbc@postgresql.org Subject: Re: [PERFORM] Performance incorporate with JReport Message-ID: <20060517190000.GU26212@pervasive.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060517:kah_hang_ang@toray.com.my::WMyipPubdpBezRa0:000000000000 00000000000000000000000088RK X-Hashcash: 1:20:060517:pgsql-jdbc@postgresql.org::rLiRjJWNbt8QUdbJ:000000000000 000000000000000000000000BTP0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/75 X-Sequence-Number: 15203 Moving to -jdbc. On Wed, May 17, 2006 at 02:13:46PM +0800, kah_hang_ang@toray.com.my wrote: > Currently I'm using postgresql v8.1.3 and the latest jdbc. > > I try to open a JReports' report and the time taken to completely open the > report is 137453ms. > Then I open the same report but this time I connect to postgresql v7.2.2 > but the completion time is even faster than connect to postgresql v8.1.3 > which took 15516ms to finish. > > I try many times and the result is still the same. > > So I think it might be compatibility problem between JReport & Postgresql > 8.1.3 so i add in 'protocolVersion=2' in the connection string. > Then i open the same report again and this time it just as what i expected, > the execution time for the report become 6000ms only, > it is 20x times faster than previous test without 'protocolVersion=2' > option. > > May I know what is the reason of this? > Is it because of the compatibility between JDBC driver with JReport? This certainly sounds like a likely JDBC issue, so I'm moving this email to pgsql-jdbc, since someone there is more likely to be able to help you. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461