pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: yazan suleiman <yazan.suleiman@gmail.com>
Cc: Maciek Sakrejda <msakrejda@truviso.com>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Slow statement when using JDBC
Date: Wed, 02 Feb 2011 18:20:15 -0500
Message-ID: <4765.1296688815@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTimk7b1zNOsmyeT66pnPJUvmAeN2bHa4vH5asBNV@mail.gmail.com>
References: <4D497D16020000250003A249@gw.wicourts.gov>
	<AANLkTinBYdnJmxKnPuADiWhbw2AFKqkQTdrdLDUf8j1z@mail.gmail.com>
	<AANLkTimk7b1zNOsmyeT66pnPJUvmAeN2bHa4vH5asBNV@mail.gmail.com>

yazan suleiman <yazan.suleiman@gmail.com> writes:
> I've done more research.  This problem appears at the database level.  I
> excluded JDBC by running explain anaylze on 2 different statement, the first
> is a prepared one  The prepared showed the same behavior.  Please see below:

Try declaring the parameter the same type as the column it's being
compared to (which you didn't mention, but I'm guessing it's NUMERIC).

			regards, tom lane



view thread (17+ messages)  latest in thread

Message-ID: <4765.1296688815@sss.pgh.pa.us>
Permalink:  ../4765.1296688815@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4765.1296688815@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, yazan.suleiman@gmail.com, msakrejda@truviso.com, Kevin.Grittner@wicourts.gov
  Subject: Re: Slow statement when using JDBC
  In-Reply-To: <4765.1296688815@sss.pgh.pa.us>
  References: <4D497D16020000250003A249@gw.wicourts.gov> <AANLkTinBYdnJmxKnPuADiWhbw2AFKqkQTdrdLDUf8j1z@mail.gmail.com> <AANLkTimk7b1zNOsmyeT66pnPJUvmAeN2bHa4vH5asBNV@mail.gmail.com> <4765.1296688815@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox