X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C54229DCAC3 for ; Wed, 25 Jan 2006 15:52:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 62030-03 for ; Wed, 25 Jan 2006 15:52:47 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id A15579DCABC for ; Wed, 25 Jan 2006 15:52:44 -0400 (AST) Received: from sqexc02.korem.com (email.korem.com [206.162.180.58]) by svr4.postgresql.org (Postfix) with ESMTP id D4DC75AF173 for ; Wed, 25 Jan 2006 19:52:43 +0000 (GMT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C621E8.B8DEC7D8" Subject: strange problem Date: Wed, 25 Jan 2006 14:51:24 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: strange problem Thread-Index: AcYh6LY02fK6qKiqSrifP3C/o2vlQg== From: "Gilbert, Antoine" To: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.121 required=5 tests=[AWL=0.120, HTML_MESSAGE=0.001] X-Spam-Score: 0.121 X-Spam-Level: X-Archive-Number: 200601/116 X-Sequence-Number: 14567 This is a multi-part message in MIME format. ------_=_NextPart_001_01C621E8.B8DEC7D8 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi =20 I have a single PostGIS table in PostgreSQL =20 This table has like 500000 records =20 I use the JDBC driver to only send a quick query without browsing resultset and it take forever. For example: =20 Statement stmt =3D connection.createStatement(); ResultSet rs =3Dstmt.executeQuery("select street from = \"QCs_polyline\""); stmt.close(); =20 This takes 19 sec. Does I am missing something like a configuration on the driver? So far I was just testing PostGIS/PostgreSQL with tiny tables.=20 =20 ------_=_NextPart_001_01C621E8.B8DEC7D8 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi

 

I have a single PostGIS table in = PostgreSQL

 

This table has like 500000 records

 

I use the JDBC driver to only send a quick query = without browsing resultset and it take forever. For example:

 

Statement stmt =3D = connection.createStatement();

ResultSet rs =3Dstmt.executeQuery("select street = from \"QCs_polyline\"");

stmt.close();

 

This takes 19 sec. Does I am missing something like a = configuration on the driver? So far I was just testing PostGIS/PostgreSQL with tiny = tables.

 

------_=_NextPart_001_01C621E8.B8DEC7D8--