Skip site navigation (1) Skip section navigation (2)

does prepareThreshold work? forced to use old driver

From: Gene <genekhart(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org, pgsql-performance(at)postgresql(dot)org
Subject: does prepareThreshold work? forced to use old driver
Date: 2007-02-26 16:12:53
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbcpgsql-performance

I've been having some serious performance issues with
postgresql8.2/hibernate/jdbc due to postgres reusing bad cached query
plans. It doesn't look at the parameter values and therefore does not
use any partial indexes.

After trying to set prepareThreshold=0 in the connection string which
didnt work, even modifying the jdbc driver and forcing it to 0 and not
working I realized that it must be being ignored. After giving up
pretty much I tried a much older driver which doesn't use server
prepared statements at all the problem has gone away and it is once
again using the partial indexes. How can I get this to work properly
on the new jdbc driver? I don't really like having to use a 2 year old
driver to get good performance as you can imagine :)

Could someone point me to a jdbc src file where I could just disable
server-side prepared statements entirely?

thanks, G


pgsql-performance by date

Next:From: Madison KellyDate: 2007-02-26 16:29:14
Subject: Writting a "search engine" for a pgsql DB
Previous:From: Peter ChildsDate: 2007-02-26 15:53:17
Subject: Re: Vacuumdb - Max_FSM_Pages Problem.

pgsql-jdbc by date

Next:From: Heikki LinnakangasDate: 2007-02-26 16:19:29
Subject: Re: bug with PGXADataSource in JNDI
Previous:From: Mario SplivaloDate: 2007-02-26 16:12:35
Subject: Re: Calling functions with table-based-type parametars

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group