Re: Prepared Statements: Inefficient Type Conversion?

Поиск
Список
Период
Сортировка
От James House
Тема Re: Prepared Statements: Inefficient Type Conversion?
Дата
Msg-id 4623CCA0.305@part.net
обсуждение исходный текст
Ответ на Re: Prepared Statements: Inefficient Type Conversion?  (Kris Jurka <books@ejurka.com>)
Ответы Re: Prepared Statements: Inefficient Type Conversion?
Список 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.



Вложения

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Bug in timezone-parsing?
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Prepared Statements: Inefficient Type Conversion?