| From: | James House <jhouse(at)part(dot)net> |
|---|---|
| To: | Kris Jurka <books(at)ejurka(dot)com> |
| Cc: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: Prepared Statements: Inefficient Type Conversion? |
| Date: | 2007-04-16 19:21:04 |
| Message-ID: | 4623CCA0.305@part.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
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.
| Attachment | Content-Type | Size |
|---|---|---|
| jhouse.vcf | text/x-vcard | 259 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ville Jantunen | 2007-04-16 19:26:18 | Re: Bug in timezone-parsing? |
| Previous Message | Kris Jurka | 2007-04-16 18:33:43 | Re: Bug in timezone-parsing? |