From: James House <jhouse@part.net>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Prepared Statements: Inefficient Type Conversion?
Date: Mon, 16 Apr 2007 13:21:04 -0600
Message-ID: <4623CCA0.305@part.net> (raw)
In-Reply-To: <Pine.BSO.4.64.0704161250550.24838@leary.csoft.net>
References: <46238730.6060903@part.net>
<Pine.BSO.4.64.0704161250550.24838@leary.csoft.net>
Kris Jurka wrote:
>> It seems that using the prepared statement to pass the value as a
>> string causes all of the 40 million upid values in the table to
>> convert to string, rather than the string parameter being converted
>> to a number. Can't the driver be smarter than that?
>
>
> You can try adding the url parameter stringtype=unspecified which will
> pass the String parameter untyped instead of as a String.
FWIW, that didn't seem to make a difference - actually, it takes even
longer to execute.
Thanks anyway. We'll try to get the datatype of the column changed.
Attachments:jhouse.vcf (text/x-vcard, 257B) download
begin:vcard
fn:James House
n:House;James
org:Partnet, Inc.;Engineering
adr;dom:;;;Salt Lake City;UT
email;internet:jhouse@part.net
title:Software Development Manager
tel;work:801 581-1118 x.9718
tel;fax:801 581-1785
x-mozilla-html:TRUE
version:2.1
end:vcard
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: jhouse@part.net, books@ejurka.com
Subject: Re: Prepared Statements: Inefficient Type Conversion?
In-Reply-To: <4623CCA0.305@part.net>
References: <46238730.6060903@part.net> <Pine.BSO.4.64.0704161250550.24838@leary.csoft.net> <4623CCA0.305@part.net>
* 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