Re: Geoserver-PostGIS performance problems - Mailing list pgsql-performance

From Merlin Moncure
Subject Re: Geoserver-PostGIS performance problems
Date
Msg-id CAHyXU0wMoin6YSdFYCrRVMQc+DK8tYn76cRaSEnzx_=maAdHAA@mail.gmail.com
Whole thread Raw
In response to Re: Geoserver-PostGIS performance problems  (Vinicius Abrahao <vinnix.bsd@gmail.com>)
Responses Re: Geoserver-PostGIS performance problems
List pgsql-performance
On Wed, Jul 25, 2012 at 2:17 PM, Vinicius Abrahao <vinnix.bsd@gmail.com> wrote:
> On Wed, Jul 25, 2012 at 3:45 PM, Merlin Moncure <mmoncure@gmail.com> wrote:
>>> Note that it seems the preparing/planning interaction was not the
>>> poster's actual problem, but it may have been yours. As Tom Lane notes
>>> in that thread, this should get better in 9.2.
>>
>> jdbc should get some blame too -- it's really aggressive about
>> preparing queries.
>>
>
> indeed!
> Is there any reason for that?

IMNSHO it's an oversight in the core JDBC design dating back to the
beginning: you have two basic choices for executing SQL.  The
unparameterized Statement or the parameterized PreparedStatement.
There should have been a 'ParamaterizedStatement' that gave the
expectation of paramaterization without setting up and permanent
server side structures to handle the query; libpq makes this
distinction and it works very well.  Of course, there are various ways
to work around this but the point stands.

merlin

pgsql-performance by date:

Previous
From: Vinicius Abrahao
Date:
Subject: Re: Geoserver-PostGIS performance problems
Next
From: Vinicius Abrahao
Date:
Subject: Re: Geoserver-PostGIS performance problems